From de9630c60e944a075b164a1d11ba4853a12b1760 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 7 Jul 2006 04:07:41 +0000 Subject: [PATCH] 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 --- django/utils/synch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django/utils/synch.py b/django/utils/synch.py index 1e6b546a784..6fcd81390e6 100644 --- a/django/utils/synch.py +++ b/django/utils/synch.py @@ -6,7 +6,10 @@ Synchronization primitives: (Contributed to Django by eugene@lazutkin.com) """ -import threading +try: + import threading +except ImportError: + import dummy_threading as threading class RWLock: """