summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-28 17:56:26 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-28 17:56:26 (GMT)
commit3e038e5e2551df9d37e1d44f7cc59cdce797f1a3 (patch)
tree695626cd60c524a424b5cfe5e0c67c2794af4de5 /Lib/shutil.py
parent62e2c7e3dfffd8465a54b99fc6d3c2a60acab350 (diff)
downloadcpython-3e038e5e2551df9d37e1d44f7cc59cdce797f1a3.zip
cpython-3e038e5e2551df9d37e1d44f7cc59cdce797f1a3.tar.gz
cpython-3e038e5e2551df9d37e1d44f7cc59cdce797f1a3.tar.bz2
Define lots of constants for indexes into the structures for the file
header and central directory structures, and use them as appropriate. The point being to make it easier to tell what is getting pulled out where; magic numbers are evil! Change the computation of the ZipInfo.file_offset field to use the length of the relevant "extra" field -- there are two different ones, and the wrong one had been used. ;-( This closes SF tracker patch #403276, but more verbosely than the proposed patch.
Diffstat (limited to 'Lib/shutil.py')
0 files changed, 0 insertions, 0 deletions