diff options
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 |