[issue11501] distutils.archive_util should handle absence of zlib module

Natalia B. Bidart report at bugs.python.org
Mon Mar 14 22:08:58 CET 2011


Natalia B. Bidart <nataliabidart at gmail.com> added the comment:

Hi Éric,

Thanks for looking at the patch. I'm not using "if zlib is not None" since the archive_utils module never explicitly imports zlib. Only the zipfile module imports zlib and raises RuntimeError if not available (as per http://docs.python.org/library/zipfile.html#zipfile-objects).

I'm changing the patch function to raise an exception as requested.

----------
versions:  -Python 2.7, Python 3.1, Python 3.2

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


More information about the Python-bugs-list mailing list