diff options
-rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 1c2b0de..2e5bfac 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -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: |