From: Amaury Forgeot d'Arc Date: Tue, 9 Nov 2010 07:35:26 +0000 (+0000) Subject: Backport part of r86217: Fix issues when building without threads X-Git-Tag: v2.7.1rc1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71431ef51ad30a37d6508ae3bb4370ca86eec9a1;p=python Backport part of r86217: Fix issues when building without threads --- diff --git a/Lib/collections.py b/Lib/collections.py index 9b14431794..a49ecc7719 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -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):