[issue19274] make zipfile.PyZipFile more usable

Christian Tismer report at bugs.python.org
Fri Oct 18 19:24:55 CEST 2013


Christian Tismer added the comment:

Ah, I understand:

The case that does not compile comes from the toplevel "test" folder,
which I could have excluded explicitly.

But it is not a complete solution:
If I want to add every package from the standard lib, then I necessarily
encounter enclosed test folders, for instance:

    Lib/unittest

contains

    Lib/unittest/test

Your hint to just not call writepy() on directories which contain files
which shouldn't be zipped means that I cannot use writepy at all,
because many library packages contain tests.
But that is the only purpose of class PyZipFile, therefore the patch.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19274>
_______________________________________


More information about the Python-bugs-list mailing list