summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-06-14 12:11:45 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-06-14 12:11:45 -0400
commit2e35b91ed2d5b6dc5be9d92e485a9915da4b83f9 (patch)
tree86d56a64582af5642ddcdc5a0f035ad52abf6338
parentca53b24b61d36165b173b590a1da8ac3bec963f6 (diff)
downloadpython-setuptools-git-2e35b91ed2d5b6dc5be9d92e485a9915da4b83f9.tar.gz
Remove documentation which seems irrelevant to this method.
-rw-r--r--pkg_resources.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index e4ba9abf..d124cb9a 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1554,20 +1554,8 @@ class ZipManifests(dict):
Build a dictionary similar to the zipimport directory
caches, except instead of tuples, store ZipInfo objects.
- The translation of the tuple is as follows:
- * [0] - zipinfo.filename on stock pythons this needs "/" --> os.sep
- on pypy it is the same (one reason why distribute did work
- in some cases on pypy and win32).
- * [1] - zipinfo.compress_type
- * [2] - zipinfo.compress_size
- * [3] - zipinfo.file_size
- * [4] - len(utf-8 encoding of filename) if zipinfo & 0x800
- len(ascii encoding of filename) otherwise
- * [5] - (zipinfo.date_time[0] - 1980) << 9 |
- zipinfo.date_time[1] << 5 | zipinfo.date_time[2]
- * [6] - (zipinfo.date_time[3] - 1980) << 11 |
- zipinfo.date_time[4] << 5 | (zipinfo.date_time[5] // 2)
- * [7] - zipinfo.CRC
+ Use a platform-specific path separator (os.sep) for the path keys
+ for compatibility with pypy on Windows.
"""
with ContextualZipFile(path) as zfile:
items = (