Ticket #10727: thread_local_import.diff
File thread_local_import.diff, 624 bytes (added by , 15 years ago) |
---|
-
django/db/backends/__init__.py
1 1 try: 2 # If the thread module is present threading.local refers to 3 # thread._local. Otherwise it refers to _threading_local.local which 4 # has a logic error in some Python versions that causes an exception 5 # upon backend initialization (http://bugs.python.org/issue1522237). 6 import thread 2 7 # Only exists in Python 2.4+ 3 8 from threading import local 4 9 except ImportError: