mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +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
|
@ -431,10 +431,7 @@ _rounding_modes = (ROUND_DOWN, ROUND_HALF_UP, ROUND_HALF_EVEN, ROUND_CEILING,
|
|||
##### Context Functions ##################################################
|
||||
|
||||
# The getcontext() and setcontext() function manage access to a thread-local
|
||||
# current context. Py2.4 offers direct support for thread locals. If that
|
||||
# is not available, use threading.current_thread() which is slower but will
|
||||
# work for older Pythons. If threads are not part of the build, create a
|
||||
# mock threading object with threading.local() returning the module namespace.
|
||||
# current context.
|
||||
|
||||
import threading
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue