anatoly techtonik <techto...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue6090>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to