from __future__ import absolute_import


def register_scheme(name):
    from six.moves.urllib import parse as urlparse
    uses = urlparse.uses_netloc, urlparse.uses_query, urlparse.uses_relative, urlparse.uses_fragment
    for use in uses:
        if name not in use:
            use.append(name)


register_scheme('app')

from __future__ import absolute_import


def register_scheme(name):
    try:
        import urlparse  # NOQA
    except ImportError:
        from urllib import parse as urlparse  # NOQA
    uses = urlparse.uses_netloc, urlparse.uses_query, urlparse.uses_relative, urlparse.uses_fragment
    for use in uses:
        if name not in use:
            use.append(name)


register_scheme('app')

Remove six.moves and disable linter
Remove six.moves and disable linter

  from __future__ import absolute_import
  
  
  def register_scheme(name):
+     try:
+         import urlparse  # NOQA
+     except ImportError:
-     from six.moves.urllib import parse as urlparse
+         from urllib import parse as urlparse  # NOQA
      uses = urlparse.uses_netloc, urlparse.uses_query, urlparse.uses_relative, urlparse.uses_fragment
      for use in uses:
          if name not in use:
              use.append(name)
  
  
  register_scheme('app')
  
Remove six.moves and disable linter
## Code Before:
from __future__ import absolute_import


def register_scheme(name):
    from six.moves.urllib import parse as urlparse
    uses = urlparse.uses_netloc, urlparse.uses_query, urlparse.uses_relative, urlparse.uses_fragment
    for use in uses:
        if name not in use:
            use.append(name)


register_scheme('app')

## Instruction:
Remove six.moves and disable linter
## Code After:
from __future__ import absolute_import


def register_scheme(name):
    try:
        import urlparse  # NOQA
    except ImportError:
        from urllib import parse as urlparse  # NOQA
    uses = urlparse.uses_netloc, urlparse.uses_query, urlparse.uses_relative, urlparse.uses_fragment
    for use in uses:
        if name not in use:
            use.append(name)


register_scheme('app')
