[issue1757072] Zipfile robustness

2010-09-09 Thread Mark Hirota

Mark Hirota  added the comment:

Yes, I'd be interested in this functionality. Anything that makes it more 
flexible to use with a wide variety of zipfiles (even bad ones :D) allows for 
increased reusability.

Thanks!

--

___
Python tracker 
<http://bugs.python.org/issue1757072>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1757072] Zipfile robustness

2008-09-16 Thread Mark Hirota

Mark Hirota <[EMAIL PROTECTED]> added the comment:

I'd like to piggyback on this issue if okay :D

I have some zipfiles I'm working with that contain junk in the extra 
fields. The ZipFile object croaks at the call to the 
ZipInfo._decodeExtra() call when it could really just ignore the error.

Example of traceback:

>>> zf = zipfile.ZipFile('bad.zip', 'r')
Traceback (most recent call last):
  File "", line 1, in 
  File "zipfile.py", line 346, in __init__
self._GetContents()
  File "zipfile.py", line 366, in _GetContents
self._RealGetContents()
  File "zipfile.py", line 424, in _RealGetContents
x._decodeExtra()
  File "zipfile.py", line 267, in _decodeExtra
tp, ln = unpack('
<http://bugs.python.org/issue1757072>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com