# -*- coding: utf-8 -*-

import sys

PY3 = sys.version_info[0] == 3
OLD_PY2 = sys.version_info[:2] < (2, 7)


if PY3:
    string_type = str
else:
    string_type = basestring


try:  # pragma: no cover
    import simplejson as json
except ImportError:
    # For python 2.6
    import json

try:
    import urllib.parse as urlparse
    urljoin = urlparse.urljoin
except ImportError:
    from urlparse import urlparse
    from urlparse import urljoin



# -*- coding: utf-8 -*-

import sys

PY3 = sys.version_info[0] == 3
OLD_PY2 = sys.version_info[:2] < (2, 7)


if PY3:
    string_type = str
else:
    string_type = basestring


try:  # pragma: no cover
    import simplejson as json
except ImportError:
    # For python 2.6
    import json

try:
    from urllib.parse import urlparse
    from urllib.parse import urljoin
except ImportError:
    from urlparse import urlparse
    from urlparse import urljoin



Fix compat for python 3