[Python-checkins] r86352 - python/branches/release27-maint/Lib/collections.py

amaury.forgeotdarc python-checkins at python.org
Tue Nov 9 08:35:27 CET 2010


Author: amaury.forgeotdarc
Date: Tue Nov  9 08:35:26 2010
New Revision: 86352

Log:
Backport part of r86217: Fix issues when building without threads


Modified:
   python/branches/release27-maint/Lib/collections.py

Modified: python/branches/release27-maint/Lib/collections.py
==============================================================================
--- python/branches/release27-maint/Lib/collections.py	(original)
+++ python/branches/release27-maint/Lib/collections.py	Tue Nov  9 08:35:26 2010
@@ -14,7 +14,7 @@
                       ifilter as _ifilter, imap as _imap
 try:
     from thread import get_ident
-except AttributeError:
+except ImportError:
     from dummy_thread import get_ident
 
 def _recursive_repr(user_function):


More information about the Python-checkins mailing list