Home | History | Annotate | Download | only in python2.7

Lines Matching defs:threading

1 """Faux ``threading`` version using ``dummy_thread`` instead of ``thread``.
4 to not have ``threading`` considered imported. Had ``threading`` been
21 # ``threading`` below.
26 # in order to initially import ``threading``.
29 if 'threading' in sys_modules:
30 # If ``threading`` is already imported, might as well prevent
33 held_threading = sys_modules['threading']
35 del sys_modules['threading']
45 import threading
47 sys_modules['_dummy_threading'] = sys_modules['threading']
48 del sys_modules['threading']
55 # Put back ``threading`` if we overwrote earlier
58 sys_modules['threading'] = held_threading