Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@adrianholovaty adrianholovaty authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 django/utils/autoreload.py
View
7 django/utils/autoreload.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.