Opened 9 years ago

Closed 9 years ago

#2036 closed defect (fixed)

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

Reported by: plmeister@… Owned by: adrian
Component: Core (Management commands) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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

Change History (1)

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.
Back to Top