[issue6090] zipfile DeprecationWarning Python 2.5/2.6
anatoly techtonik
report at bugs.python.org
Tue Apr 6 09:54:48 CEST 2010
anatoly techtonik <techtonik at gmail.com> added the comment:
This code is broken in 2.7alpha4 - it doesn't add file at all.
Traceback (most recent call last):
File "test.py", line 5, in <module>
new.writestr(zi,'fgh')
File "C:\~env\Python27\lib\zipfile.py", line 1099, in writestr
self.fp.write(zinfo.FileHeader())
File "C:\~env\Python27\lib\zipfile.py", line 342, in FileHeader
len(filename), len(extra))
struct.error: ushort format requires 0 <= number <= USHRT_MAX
----------
components: +Library (Lib) -Extension Modules
nosy: +techtonik
title: zipfile DeprecationWarning Python 2.6.2 -> zipfile DeprecationWarning Python 2.5/2.6
versions: +Python 2.5, Python 2.7
Added file: http://bugs.python.org/file16775/test6090.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6090>
_______________________________________
More information about the Python-bugs-list
mailing list