From 9e777730eb399ada4c2f6271883e73455eacd5c8 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 10 Oct 2015 19:43:32 +0300 Subject: Issue #25364: zipfile now works in threads disabled builds. --- Lib/zipfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lib/zipfile.py') diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 85bdaa99ae..2bd1007e2a 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -13,8 +13,11 @@ import stat 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 -- cgit v1.2.1