[Python-checkins] cpython (3.5): Issue #25364: zipfile now works in threads disabled builds.

serhiy.storchaka python-checkins at python.org
Sat Oct 10 12:45:01 EDT 2015


https://hg.python.org/cpython/rev/15740b3ad148
changeset:   98649:15740b3ad148
branch:      3.5
parent:      98647:836ac579e179
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sat Oct 10 19:43:32 2015 +0300
summary:
  Issue #25364: zipfile now works in threads disabled builds.

files:
  Lib/zipfile.py |  5 ++++-
  Misc/NEWS      |  2 ++
  2 files changed, 6 insertions(+), 1 deletions(-)


diff --git a/Lib/zipfile.py b/Lib/zipfile.py
--- 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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -40,6 +40,8 @@
 Library
 -------
 
+- Issue #25364: zipfile now works in threads disabled builds.
+
 - Issue #25328: smtpd's SMTPChannel now correctly raises a ValueError if both
   decode_data and enable_SMTPUTF8 are set to true.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list