]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Move the previously local import of threading to module level.
authorGeorg Brandl <georg@python.org>
Sun, 15 Mar 2009 22:11:07 +0000 (22:11 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 15 Mar 2009 22:11:07 +0000 (22:11 +0000)
commitfc9ea97a18c2c25045b4cc993932702b30df239c
tree0d7d5f4b6ab64027ddd7ee822d1cc3ec13443207
parent545a134916a32cbfddb3001642491d9466a71536
Move the previously local import of threading to module level.

This is cleaner and avoids lockups in obscure cases where a Queue
is instantiated while the import lock is already held by another thread.

OKed by Tim Peters.
Lib/Queue.py