commit | 9e777730eb399ada4c2f6271883e73455eacd5c8 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Oct 10 19:43:32 2015 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sat Oct 10 19:43:32 2015 +0300 |
tree | d54a573bb8954ff86521dec9657ca12ea2ac8be0 | |
parent | 05da525e55a5db2e2e3c81e413e69c4a6f0a1db9 [diff] [blame] |
Issue #25364: zipfile now works in threads disabled builds.
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 85bdaa9..2bd1007 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py
@@ -13,8 +13,11 @@ import shutil import struct import binascii -import threading +try: + import threading +except ImportError: + import dummy_threading as threading try: import zlib # We may need its compression method