Django

Code

Ticket #2036 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

utils/autoreload.py falls over when "thread" module is not installed

Reported by: plmeister@gmail.com Assigned to: adrian
Milestone: Component: django-admin.py
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Python's thread module is the interface to your systems pthreads library - and it's also an optional module, as not all systems support pthreads. Where pthreads are not available, the "dummy_thread" module can be used as a drop-in replacement..

easy to do..instead of:

import os, sys, thread, time

use:

import os, sys, time

try:
    import thread
except:
    import dummy_thread as thread

Attachments

Change History

05/31/06 09:53:23 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [3020]) Fixed #2036 -- autoreload.py no longer fails for uninstalled 'thread' module. Thanks, plmeister@gmail.com


Add/Change #2036 (utils/autoreload.py falls over when "thread" module is not installed)




Change Properties
Action