Author: adrian
Date: 2006-07-28 17:13:34 -0500 (Fri, 28 Jul 2006)
New Revision: 3482

Modified:
   django/trunk/django/utils/autoreload.py
Log:
Fixed #2330 -- Added hack to stop KeyErrors from being thrown by the 
autoreloading development server if USE_I18N=False

Modified: django/trunk/django/utils/autoreload.py
===================================================================
--- django/trunk/django/utils/autoreload.py     2006-07-28 21:53:54 UTC (rev 
3481)
+++ django/trunk/django/utils/autoreload.py     2006-07-28 22:13:34 UTC (rev 
3482)
@@ -35,6 +35,14 @@
 except ImportError:
     import dummy_thread as thread
 
+# This import does nothing, but it's necessary to avoid some race conditions
+# in the threading module. See http://code.djangoproject.com/ticket/2330 .
+try:
+    import threading
+except ImportError:
+    pass
+
+
 RUN_RELOADER = True
 
 def reloader_thread():


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to