File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66Suggested usage is::
77
88 try:
9- import _thread
9+ try:
10+ import _thread # Python >= 3
11+ except:
12+ import thread as _thread # Python < 3
1013 except ImportError:
1114 import _dummy_thread as _thread
1215
Original file line number Diff line number Diff line change 1717from weakref import proxy as _proxy
1818import sys as _sys
1919try :
20- from _thread import allocate_lock as Lock
21- except :
20+ from thread import allocate_lock as Lock
21+ except ImportError :
2222 from ._dummy_thread32 import allocate_lock as Lock
2323
2424################################################################################
Original file line number Diff line number Diff line change 55import __builtin__ as builtins
66from itertools import islice
77try :
8- from _thread import get_ident
8+ from thread import get_ident
99except ImportError :
1010 from _dummy_thread32 import get_ident
1111
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def main():
1111
1212 setup (
1313 name = 'functools32' ,
14- version = '3.2.3-1 ' ,
14+ version = '3.2.3-2 ' ,
1515 description = 'Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy.' ,
1616 long_description = """
1717This is a backport of the functools standard library module from
You can’t perform that action at this time.
0 commit comments