Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2036 -- autoreload.py no longer fails for uninstalled 'thread'…

… module. Thanks, plmeister@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8623bd126ddf85344aaf5aedd933e90b32c71148 1 parent 45518a0
Adrian Holovaty authored May 31, 2006

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  django/utils/autoreload.py
7  django/utils/autoreload.py
@@ -28,7 +28,12 @@
28 28
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 29
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 30
 
31  
-import os, sys, thread, time
  31
+import os, sys, time
  32
+
  33
+try:
  34
+    import thread
  35
+except ImportError:
  36
+    import dummy_thread as thread
32 37
 
33 38
 RUN_RELOADER = True
34 39
 

0 notes on commit 8623bd1

Please sign in to comment.
Something went wrong with that request. Please try again.