Skip to content

Commit

Permalink
Fixed #2036 -- autoreload.py no longer fails for uninstalled 'thread'…
Browse files Browse the repository at this point in the history
… module. Thanks, plmeister@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed May 31, 2006
1 parent 45518a0 commit 8623bd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion django/utils/autoreload.py
Expand Up @@ -28,7 +28,12 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import os, sys, thread, time
import os, sys, time

try:
import thread
except ImportError:
import dummy_thread as thread

RUN_RELOADER = True

Expand Down

0 comments on commit 8623bd1

Please sign in to comment.