Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51d960e

Browse files
Fix Windows.
1 parentc7a832b commit51d960e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎Lib/threading.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
_CRLock=None
5151
TIMEOUT_MAX=_thread.TIMEOUT_MAX
5252
_wait_for_threads_fini=_thread._wait_for_threads_fini
53-
_internal_after_fork=_thread._after_fork
53+
try:
54+
_internal_after_fork=_thread._after_fork
55+
exceptAttributeError:
56+
_internal_after_fork=None
5457
del_thread
5558

5659

@@ -1683,5 +1686,6 @@ def _after_fork():
16831686

16841687

16851688
ifhasattr(_os,"register_at_fork"):
1686-
_os.register_at_fork(after_in_child=_internal_after_fork)
1689+
if_internal_after_forkisnotNone:
1690+
_os.register_at_fork(after_in_child=_internal_after_fork)
16871691
_os.register_at_fork(after_in_child=_after_fork)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp