Code

Opened 8 years ago

Closed 8 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

Attachments (0)

Change History (1)

comment:1 Changed 8 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@…

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.