import sys

__all__ = ['urljoin', 'urlparse']

PY2 = sys.version_info[0] == 2

if PY2:
    from urlparse import urlparse, urljoin

    range_type = xrange  # noqa: F821
    bytes_type = str
    iteritems = lambda d: d.iteritems()  # noqa: E731
    from collections import MutableMapping  # noqa: F401
else:
    from urllib.parse import urlparse, urljoin

    range_type = range
    bytes_type = bytes
    iteritems = lambda d: iter(d.items())  # noqa: E731
    from collections.abc import MutableMapping  # noqa: F401

@@ -1,16 +1,4 @@
-import sys%0A%0A
 __al
@@ -32,272 +32,8 @@
 '%5D%0A%0A
-PY2 = sys.version_info%5B0%5D == 2%0A%0Aif PY2:%0A    from urlparse import urlparse, urljoin%0A%0A    range_type = xrange  # noqa: F821%0A    bytes_type = str%0A    iteritems = lambda d: d.iteritems()  # noqa: E731%0A    from collections import MutableMapping  # noqa: F401%0Aelse:%0A    
 from
@@ -72,20 +72,16 @@
 rljoin%0A%0A
-    
 range_ty
@@ -91,20 +91,16 @@
 = range%0A
-    
 bytes_ty
@@ -110,20 +110,16 @@
 = bytes%0A
-    
 iteritem
@@ -166,12 +166,8 @@
 731%0A
-    
 from

drop py2 support from _compat.py