mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Trivial cleanups following bpo-31370 (#3649)
* Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
This commit is contained in:
parent
b43c4caf81
commit
88c60c9668
16 changed files with 171 additions and 209 deletions
|
@ -1411,11 +1411,7 @@ def _setup(_bootstrap_module):
|
|||
setattr(self_module, 'path_separators', ''.join(path_separators))
|
||||
|
||||
# Directly load the _thread module (needed during bootstrap).
|
||||
try:
|
||||
thread_module = _bootstrap._builtin_from_name('_thread')
|
||||
except ImportError:
|
||||
# Python was built without threads
|
||||
thread_module = None
|
||||
thread_module = _bootstrap._builtin_from_name('_thread')
|
||||
setattr(self_module, '_thread', thread_module)
|
||||
|
||||
# Directly load the _weakref module (needed during bootstrap).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue