Kaydet (Commit) 90eac285 authored tarafından Fred Drake's avatar Fred Drake

Fix SF tracker bug #403871: AttributeError in ZipFile.__del__() when

    there was an IOError opening the underlying file in ZipFile.__init__().
üst 3f571d64
......@@ -92,6 +92,8 @@ class ZipInfo:
class ZipFile:
"""Class with methods to open, read, write, close, list zip files."""
fp = None # Set here since __del__ checks it
def __init__(self, filename, mode="r", compression=ZIP_STORED):
"""Open the ZIP file with mode read "r", write "w" or append "a"."""
if compression == ZIP_STORED:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment