diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2013-12-01 06:12:06 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-12-01 06:12:06 -0500 |
| commit | b5fb0307783d751bf2acd69814acbefbf211dee5 (patch) | |
| tree | 425b380c64b81e8ec3b7d818d54e9e92355fba4a | |
| parent | 601f8ff8075a36247f17a737e3612394f26e4be7 (diff) | |
| download | python-setuptools-bitbucket-b5fb0307783d751bf2acd69814acbefbf211dee5.tar.gz | |
Corrected a TypeError when reading a local package index on Python 3. Fixes #116.1.4.2
| -rw-r--r-- | CHANGES.txt | 7 | ||||
| -rwxr-xr-x | setuptools/package_index.py | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index b20d1683..09c6479e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,13 @@ CHANGES ======= ----- +1.4.2 +----- + +* Issue #116: Correct TypeError when reading a local package index on Python + 3. + +----- 1.4.1 ----- diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 4ffafa28..ef247cf3 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -1039,7 +1039,7 @@ def local_open(url): files = [] for f in os.listdir(filename): if f=='index.html': - fp = open(os.path.join(filename,f),'rb') + fp = open(os.path.join(filename,f),'r') body = fp.read() fp.close() break |
