diff options
author | Philip Thiem <ptthiem@gmail.com> | 2013-07-20 17:45:04 -0500 |
---|---|---|
committer | Philip Thiem <ptthiem@gmail.com> | 2013-07-20 17:45:04 -0500 |
commit | b4ba33898f4d67af70319a0bb64edca72fc3ecee (patch) | |
tree | 6570fef0f808141aed5b93275f8b86469224eee4 /setuptools/compat.py | |
parent | 411379b73db3bc4955e369affc448cd10ac025e6 (diff) | |
download | external_python_setuptools-b4ba33898f4d67af70319a0bb64edca72fc3ecee.tar.gz external_python_setuptools-b4ba33898f4d67af70319a0bb64edca72fc3ecee.tar.bz2 external_python_setuptools-b4ba33898f4d67af70319a0bb64edca72fc3ecee.zip |
Additional Tests, Various fixes, and encoding dealings
--HG--
extra : rebase_source : 2734e79e08e194923eab8c70f92cb77bce7daccf
Diffstat (limited to 'setuptools/compat.py')
-rw-r--r-- | setuptools/compat.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/compat.py b/setuptools/compat.py index e2f64de2..94fe23e9 100644 --- a/setuptools/compat.py +++ b/setuptools/compat.py @@ -26,6 +26,7 @@ if sys.version_info[0] < 3: reduce = reduce unichr = unichr unicode = unicode + bytes = str from urllib import url2pathname import urllib2 from urllib2 import urlopen, HTTPError, URLError, unquote, splituser @@ -69,6 +70,7 @@ else: from functools import reduce unichr = chr unicode = str + bytes = bytes from urllib.error import HTTPError, URLError import urllib.request as urllib2 from urllib.request import urlopen, url2pathname |