Loading django/db/backends/__init__.py +1 −1 Original line number Diff line number Diff line from django.db.utils import DatabaseError try: import thread from django.utils.six.moves import _thread as thread except ImportError: from django.utils.six.moves import _dummy_thread as thread from contextlib import contextmanager Loading django/utils/autoreload.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ import os, sys, time, signal try: import thread from django.utils.six.moves import _thread as thread except ImportError: from django.utils.six.moves import _dummy_thread as thread Loading django/utils/six.py +2 −0 Original line number Diff line number Diff line Loading @@ -365,4 +365,6 @@ def iterlists(d): """Return an iterator over the values of a MultiValueDict.""" return getattr(d, _iterlists)() add_move(MovedModule("_dummy_thread", "dummy_thread")) add_move(MovedModule("_thread", "thread")) docs/topics/python3.txt +2 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,8 @@ Moved modules Some modules were renamed in Python 3. The :mod:`django.utils.six.moves <six.moves>` module provides a compatible location to import them. In addition to six' defaults, Django's version provides ``dummy_thread`` as ``_dummy_thread``. In addition to six' defaults, Django's version provides ``thread`` as ``_thread`` and ``dummy_thread`` as ``_dummy_thread``. PY3 --- Loading Loading
django/db/backends/__init__.py +1 −1 Original line number Diff line number Diff line from django.db.utils import DatabaseError try: import thread from django.utils.six.moves import _thread as thread except ImportError: from django.utils.six.moves import _dummy_thread as thread from contextlib import contextmanager Loading
django/utils/autoreload.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ import os, sys, time, signal try: import thread from django.utils.six.moves import _thread as thread except ImportError: from django.utils.six.moves import _dummy_thread as thread Loading
django/utils/six.py +2 −0 Original line number Diff line number Diff line Loading @@ -365,4 +365,6 @@ def iterlists(d): """Return an iterator over the values of a MultiValueDict.""" return getattr(d, _iterlists)() add_move(MovedModule("_dummy_thread", "dummy_thread")) add_move(MovedModule("_thread", "thread"))
docs/topics/python3.txt +2 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,8 @@ Moved modules Some modules were renamed in Python 3. The :mod:`django.utils.six.moves <six.moves>` module provides a compatible location to import them. In addition to six' defaults, Django's version provides ``dummy_thread`` as ``_dummy_thread``. In addition to six' defaults, Django's version provides ``thread`` as ``_thread`` and ``dummy_thread`` as ``_dummy_thread``. PY3 --- Loading