Backport part of r86217: Fix issues when building without threads

This commit is contained in:
Amaury Forgeot d'Arc 2010-11-09 07:35:26 +00:00
parent 80860381a5
commit 71431ef51a
1 changed files with 1 additions and 1 deletions

View 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):