Browse files

Fixed #2258 -- Accounted for the case of a missing threading library …

…in django.utils.synch. Thanks, scott@clued-in.co.uk

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 49e5f54 commit de9630c60e944a075b164a1d11ba4853a12b1760 @adrianholovaty adrianholovaty committed Jul 7, 2006
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/utils/synch.py
View
5 django/utils/synch.py
@@ -6,7 +6,10 @@
(Contributed to Django by eugene@lazutkin.com)
"""
-import threading
+try:
+ import threading
+except ImportError:
+ import dummy_threading as threading
class RWLock:
"""

0 comments on commit de9630c

Please sign in to comment.