From 71431ef51ad30a37d6508ae3bb4370ca86eec9a1 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Tue, 9 Nov 2010 07:35:26 +0000 Subject: Backport part of r86217: Fix issues when building without threads --- Lib/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/collections.py b/Lib/collections.py index 9b14431..a49ecc7 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): -- cgit v0.12