diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-31 14:53:23 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-31 14:53:23 +0000 |
| commit | 8623bd126ddf85344aaf5aedd933e90b32c71148 (patch) | |
| tree | 82131acd0b25a408e7149958bccb1dc104eb7a7d /django/utils/autoreload.py | |
| parent | 45518a052b5d014502d960911d1fda779b6fb90f (diff) | |
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
Diffstat (limited to 'django/utils/autoreload.py')
| -rw-r--r-- | django/utils/autoreload.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 1edec190d8..6363af7835 100644 --- a/django/utils/autoreload.py +++ b/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 |
