]> granicus.if.org Git - python/commitdiff
Backport part of r86217: Fix issues when building without threads
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 9 Nov 2010 07:35:26 +0000 (07:35 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 9 Nov 2010 07:35:26 +0000 (07:35 +0000)
Lib/collections.py

index 9b144317945343bb3627de91cb76fea9fbe92c58..a49ecc7719eca128a49927f7edd5205a94afaaaf 100644 (file)
@@ -14,7 +14,7 @@ from itertools import repeat as _repeat, chain as _chain, starmap as _starmap, \
                       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):