__since__ = '2013-03-24'

from pamqp import PYTHON3

if PYTHON3:
    from urllib import parse as urlparse
else:
    import urlparse


def parse_qs(query_string):
    return urlparse.parse_qs(query_string)


def urlparse(url):
    return urlparse.urlparse(url)


def unquote(value):
    return urlparse.unquote(value)


def is_string(value):
    if PYTHON3:
        return isinstance(value, str) or isinstance(value, bytes)
    return isinstance(value, basestring)

from pamqp import PYTHON3

try:
    from urllib import parse as _urlparse
except ImportError:
    import urlparse as _urlparse


def parse_qs(query_string):
    return _urlparse.parse_qs(query_string)


def urlparse(url):
    return _urlparse.urlparse(url)


def unquote(value):
    return _urlparse.unquote(value)


def is_string(value):
    if PYTHON3:
        return isinstance(value, str) or isinstance(value, bytes)
    return isinstance(value, basestring)

Fix urlparse name collision with method
Fix urlparse name collision with method

- __since__ = '2013-03-24'
- 
  from pamqp import PYTHON3
  
- if PYTHON3:
+ try:
-     from urllib import parse as urlparse
+     from urllib import parse as _urlparse
- else:
-     import urlparse
+ except ImportError:
+     import urlparse as _urlparse
  
  
  def parse_qs(query_string):
-     return urlparse.parse_qs(query_string)
+     return _urlparse.parse_qs(query_string)
  
  
  def urlparse(url):
-     return urlparse.urlparse(url)
+     return _urlparse.urlparse(url)
  
  
  def unquote(value):
-     return urlparse.unquote(value)
+     return _urlparse.unquote(value)
  
  
  def is_string(value):
      if PYTHON3:
          return isinstance(value, str) or isinstance(value, bytes)
      return isinstance(value, basestring)
  
Fix urlparse name collision with method
## Code Before:
__since__ = '2013-03-24'

from pamqp import PYTHON3

if PYTHON3:
    from urllib import parse as urlparse
else:
    import urlparse


def parse_qs(query_string):
    return urlparse.parse_qs(query_string)


def urlparse(url):
    return urlparse.urlparse(url)


def unquote(value):
    return urlparse.unquote(value)


def is_string(value):
    if PYTHON3:
        return isinstance(value, str) or isinstance(value, bytes)
    return isinstance(value, basestring)

## Instruction:
Fix urlparse name collision with method
## Code After:
from pamqp import PYTHON3

try:
    from urllib import parse as _urlparse
except ImportError:
    import urlparse as _urlparse


def parse_qs(query_string):
    return _urlparse.parse_qs(query_string)


def urlparse(url):
    return _urlparse.urlparse(url)


def unquote(value):
    return _urlparse.unquote(value)


def is_string(value):
    if PYTHON3:
        return isinstance(value, str) or isinstance(value, bytes)
    return isinstance(value, basestring)
