Commits

Amaury Forgeot d'Arc  committed b4938c3

Backport part of r86217: Fix issues when building without threads

  • Participants
  • Parent commits b347b5c
  • Branches 2.7

Comments (0)

Files changed (1)

File Lib/collections.py

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