diff options
author | Philip Thiem <ptthiem@gmail.com> | 2013-02-05 09:55:53 -0600 |
---|---|---|
committer | Philip Thiem <ptthiem@gmail.com> | 2013-02-05 09:55:53 -0600 |
commit | 0c10ea7a063c2d3f3c3c539c1d601fd8d95429dd (patch) | |
tree | 1c3ef36ec0d16d5794aa0db989b99fadd2e4c59d /pkg_resources.py | |
parent | 4350a091eecb5af1dd461442c311d981550bedb5 (diff) | |
download | external_python_setuptools-0c10ea7a063c2d3f3c3c539c1d601fd8d95429dd.tar.gz external_python_setuptools-0c10ea7a063c2d3f3c3c539c1d601fd8d95429dd.tar.bz2 external_python_setuptools-0c10ea7a063c2d3f3c3c539c1d601fd8d95429dd.zip |
minor cleanups
--HG--
branch : distribute
extra : rebase_source : a872a0ee0700a60994fea3417193998d9e9456a3
Diffstat (limited to 'pkg_resources.py')
-rw-r--r-- | pkg_resources.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index e1bf9ee0..144323cb 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1349,6 +1349,7 @@ class EmptyProvider(NullProvider): empty_provider = EmptyProvider() +
def build_zipmanifest(path):
"""
This builds a similar dictionary to the zipimport directory
@@ -1363,9 +1364,9 @@ def build_zipmanifest(path): * [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 |
+ * [5] - (zipinfo.date_time[0] - 1980) << 9 |
zipinfo.date_time[1] << 5 | zipinfo.date_time[2]
- * [6] - (zipinfo.date_time[3] - 1980) << 11 |
+ * [6] - (zipinfo.date_time[3] - 1980) << 11 |
zipinfo.date_time[4] << 5 | (zipinfo.date_time[5] // 2)
* [7] - zipinfo.CRC
"""
@@ -1422,7 +1423,7 @@ class ZipProvider(EggProvider): @staticmethod def _get_date_and_size(zip_stat):
size = zip_stat.file_size
- date_time = zip_stat.date_time + (0, 0, -1) #ymdhms+wday, yday, dst
+ date_time = zip_stat.date_time + (0, 0, -1) # ymdhms+wday, yday, dst
#1980 offset already done
timestamp = time.mktime(date_time) return timestamp, size |