Files
RustPython/Lib/_rp_thread.py
Alan Justino 4a7e8bc7ec Populate _thread missing stuff with _dummy_thread ones
Occurs on `threading` initialization
2019-10-13 15:53:46 +02:00

8 lines
237 B
Python
Vendored

import _thread
import _dummy_thread
for k in _dummy_thread.__all__ + ['_set_sentinel', 'stack_size']:
if k not in _thread.__dict__:
# print('Populating _thread.%s' % k)
setattr(_thread, k, getattr(_dummy_thread, k))