_dummy_thread.py 348 B

12345678910111213
  1. from __future__ import absolute_import
  2. from future.utils import PY3, PY39_PLUS
  3. if PY39_PLUS:
  4. # _dummy_thread and dummy_threading modules were both deprecated in
  5. # Python 3.7 and removed in Python 3.9
  6. from _thread import *
  7. elif PY3:
  8. from _dummy_thread import *
  9. else:
  10. __future_module__ = True
  11. from dummy_thread import *