]> granicus.if.org Git - python/commit
Make test_zipfile pass.
authorGuido van Rossum <guido@python.org>
Tue, 22 May 2007 01:29:33 +0000 (01:29 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 22 May 2007 01:29:33 +0000 (01:29 +0000)
commitd6ca5460914926e54c2a063728a6c785ced8a702
tree2d56c7e93b4cc7b37233d6fd33b5b035d8445945
parent94ca1c620ebc63b0860579835f2c16fe056e1225
Make test_zipfile pass.
The zipfile module now does all I/O in binary mode using bytes.
(Maybe we should support wrapping a TextIOWrapper around it
when text mode reading is requested?)
Even the password is a bytes array now.
Had to fix py_compile.py to use bytes while I was at it.
The _struct needed a patch to support bytes, str8 and str
for the 's' and 'p' formats.
Lib/py_compile.py
Lib/test/test_zipfile.py
Lib/zipfile.py
Modules/_struct.c