This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jvr
Recipients
Date 2002-12-10.20:31:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch allows ZipFile.writestr() to be called with
an archive file name instead of a ZipInfo instance:

    z = ZipFile("myarchive.zip", "w")
    z.writestr("foo/baz/file.ext", data)
    z.close()

I find the current writestr() method very inconvenient
for simple (but common) things.

If called with a file name instead of a ZipInfo
instance, the date_time is set to now, which makes most
sense for anonymous data.

The patch also patches Doc/Lib/libzipfile.tex.

Just
History
Date User Action Args
2007-08-23 15:18:55adminlinkissue651621 messages
2007-08-23 15:18:55admincreate