<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/zipfile.py, branch v2.3.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/zipfile.py?h=v2.3.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/zipfile.py?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-06-27T22:25:03Z</updated>
<entry>
<title>SF patch #756996: Bare except in ZipFile.testzip()</title>
<updated>2003-06-27T22:25:03Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-27T22:25:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c0fac96c29a3842d9370e4c954ae1f4d57f849d0'/>
<id>urn:sha1:c0fac96c29a3842d9370e4c954ae1f4d57f849d0</id>
<content type='text'>
(Contributed by Steven Taschuk)

Replaces a bare except that caused all errors to be mis-reported as
archive errors.

Added a related NEWS item.
</content>
</entry>
<entry>
<title>Remove debug print on filename with NUL byte.</title>
<updated>2003-06-18T00:54:28Z</updated>
<author>
<name>Greg Ward</name>
<email>gward@python.net</email>
</author>
<published>2003-06-18T00:54:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b1587836992c460d213b9bbc6f539516139bdf2'/>
<id>urn:sha1:9b1587836992c460d213b9bbc6f539516139bdf2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch #755987 (Jim Ahlstrom):</title>
<updated>2003-06-18T00:53:06Z</updated>
<author>
<name>Greg Ward</name>
<email>gward@python.net</email>
</author>
<published>2003-06-18T00:53:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8e36d28f3c082d7c10e5d7cbbb5301ec6e0d7d32'/>
<id>urn:sha1:8e36d28f3c082d7c10e5d7cbbb5301ec6e0d7d32</id>
<content type='text'>
This is a patch for Bug 755031: If a null byte appears in
a file name, Python zipfile.py retains it, but InfoZip
terminates the name. Null bytes in file names are used
as a trick by viruses. I tested WinZip, and it also
truncates the file name at the null byte.

The patch also fixes a buglet: If a zipfile incorrectly
uses a directory separator other than '/', there was an
invalid complaint that the central directory name does
not match the file header name.

I also removed my name from the top of the file. It was
there for legal reasons which I believe no longer apply.
Many people have worked on this file besides me.
</content>
</entry>
<entry>
<title>Patch #661719: Expose compilation errors as exceptions on request.</title>
<updated>2003-01-15T11:51:06Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-01-15T11:51:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0c6774d92b48c4c4097a3a3bea2294093092e4e3'/>
<id>urn:sha1:0c6774d92b48c4c4097a3a3bea2294093092e4e3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch #651621, approved by MvL.</title>
<updated>2002-12-12T12:23:32Z</updated>
<author>
<name>Just van Rossum</name>
<email>just@letterror.com</email>
</author>
<published>2002-12-12T12:23:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b083cb3901fcb7487c04ad996148d1cf0aa32350'/>
<id>urn:sha1:b083cb3901fcb7487c04ad996148d1cf0aa32350</id>
<content type='text'>
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 found the old 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 the current date/time,
which makes sense to me for anonymous data.
</content>
</entry>
<entry>
<title>Patch #611760: read archives with comments.</title>
<updated>2002-10-13T13:54:50Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-10-13T13:54:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f6873baa1b0bad2cf91ae58982ca161b3e8a5b0'/>
<id>urn:sha1:6f6873baa1b0bad2cf91ae58982ca161b3e8a5b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid warnings about &lt;&lt;.  external_attr is now an unsigned long.</title>
<updated>2002-08-12T15:15:51Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-08-12T15:15:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1ae4c3d0d8177306a899a083cfe55cc3192eaaa4'/>
<id>urn:sha1:1ae4c3d0d8177306a899a083cfe55cc3192eaaa4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove uses of the string and types modules:</title>
<updated>2002-06-03T15:58:32Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2002-06-03T15:58:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=65230a2de758fbde57b3893c402436ae0202ada3'/>
<id>urn:sha1:65230a2de758fbde57b3893c402436ae0202ada3</id>
<content type='text'>
x in string.whitespace =&gt; x.isspace()
type(x) in types.StringTypes =&gt; isinstance(x, basestring)
isinstance(x, types.StringTypes) =&gt; isinstance(x, basestring)
type(x) is types.StringType =&gt; isinstance(x, str)
type(x) == types.StringType =&gt; isinstance(x, str)
string.split(x, ...) =&gt; x.split(...)
string.join(x, y) =&gt; y.join(x)
string.zfill(x, ...) =&gt; x.zfill(...)
string.count(x, ...) =&gt; x.count(...)
hasattr(types, "UnicodeType") =&gt; try: unicode except NameError:
type(x) != types.TupleTuple =&gt; not isinstance(x, tuple)
isinstance(x, types.TupleType) =&gt; isinstance(x, tuple)
type(x) is types.IntType =&gt; isinstance(x, int)

Do not mention the string module in the rlcompleter docstring.

This partially applies SF patch http://www.python.org/sf/562373
(with basestring instead of string). (It excludes the changes to
unittest.py and does not change the os.stat stuff.)
</content>
</entry>
<entry>
<title>Replaced obsolete stat module constants with equivalent attributes</title>
<updated>2002-06-01T19:51:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-06-01T19:51:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32200aeac697fcb3f2b4528127a2fbf0a22a8f17'/>
<id>urn:sha1:32200aeac697fcb3f2b4528127a2fbf0a22a8f17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF 563203. Replaced 'has_key()' with 'in'.</title>
<updated>2002-06-01T14:18:47Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-06-01T14:18:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=54f0222547b1e92cd018ef132307a6f793dc9505'/>
<id>urn:sha1:54f0222547b1e92cd018ef132307a6f793dc9505</id>
<content type='text'>
</content>
</entry>
</feed>
