[issue11443] Zip password issue

Charles-Francois Natali report at bugs.python.org
Tue Mar 8 21:19:10 CET 2011


Charles-Francois Natali <neologix at free.fr> added the comment:

The check is done in py3k:

Traceback (most recent call last):
  File "/home/cf/test_zip.py", line 7, in <module>
    print(z.read("secretfile.txt"))
  File "/home/cf/py3k/Lib/zipfile.py", line 889, in read
    with self.open(name, "r", pwd) as fp:
  File "/home/cf/py3k/Lib/zipfile.py", line 975, in open
    raise RuntimeError("Bad password for file", name)
RuntimeError: ('Bad password for file', 'secretfile.txt')

Try with Python 3.2.

----------
nosy: +neologix

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11443>
_______________________________________


More information about the Python-bugs-list mailing list