Message248699
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
>>> s=zipfile.ZipFile('random.zip')
>>> s.extractall(pwd='getlost')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/zipfile.py", line 1040, in extractall
self.extract(zipinfo, path, pwd)
File "/usr/lib/python2.7/zipfile.py", line 1028, in extract
return self._extract_member(member, path, pwd)
File "/usr/lib/python2.7/zipfile.py", line 1082, in _extract_member
with self.open(member, pwd=pwd) as source, \
File "/usr/lib/python2.7/zipfile.py", line 1007, in open
raise RuntimeError("Bad password for file", name)
RuntimeError: ('Bad password for file', <zipfile.ZipInfo object at 0x7faf1d1921e0>) |
|
Date |
User |
Action |
Args |
2015-08-17 00:53:47 | shivaprasanth | set | recipients:
+ shivaprasanth |
2015-08-17 00:53:47 | shivaprasanth | set | messageid: <1439772827.06.0.277077492924.issue24877@psf.upfronthosting.co.za> |
2015-08-17 00:53:47 | shivaprasanth | link | issue24877 messages |
2015-08-17 00:53:47 | shivaprasanth | create | |
|