Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
dnspython / _compat.py
Size: Mime:
import sys


if sys.version_info > (3,):
    long = int
    xrange = range
else:
    long = long
    xrange = xrange

# unicode / binary types
if sys.version_info > (3,):
    text_type = str
    binary_type = bytes
    string_types = (str,)
    unichr = chr
else:
    text_type = unicode
    binary_type = str
    string_types = (basestring,)
    unichr = unichr