[New-bugs-announce] [issue6090] zipfile DeprecationWarning Python 2.6.2
Ivan Bykov
report at bugs.python.org
Fri May 22 18:50:59 CEST 2009
New submission from Ivan Bykov <ivan.bykov at gmail.com>:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
IDLE 2.6.2
>>> import zipfile
>>> new = zipfile.ZipFile('C:\\x', 'w', zipfile.ZIP_DEFLATED)
>>> zi = zipfile.ZipInfo('test',(1,2,3,4,5,6))
>>> new.writestr(zi,'fgh')
Warning (from warnings module):
File "H:\programs\python\lib\zipfile.py", line 1105
self.fp.write(zinfo.FileHeader())
DeprecationWarning: struct integer overflow masking is deprecated
Warning (from warnings module):
File "H:\programs\python\lib\zipfile.py", line 1105
self.fp.write(zinfo.FileHeader())
DeprecationWarning: 'H' format requires 0 <= number <= 65535
>>>
----------
components: Extension Modules
messages: 88201
nosy: ivb
severity: normal
status: open
title: zipfile DeprecationWarning Python 2.6.2
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6090>
_______________________________________
More information about the New-bugs-announce
mailing list