Jason R. Coombs <jar...@jaraco.com> added the comment:
Implementing that last option: ``` diff --git a/zipp.py b/zipp.py index 697d4a9..f244cba 100644 --- a/zipp.py +++ b/zipp.py @@ -111,6 +111,7 @@ class CompleteDirs(zipfile.ZipFile): res = cls.__new__(cls) vars(res).update(vars(source)) + res.close = lambda: None return res ``` Does appear to address the issue. I'm not super happy about the implementation, though. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com