Work around an annoying Python 3.6 regression #1889

This commit is contained in:
Thomas Nagy 2017-02-13 20:53:15 +01:00
parent ef3b1bdcbf
commit ffcbf5d402
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 2 additions and 1 deletions

View File

@ -980,7 +980,8 @@ def atexit_pool():
pass
else:
k.wait()
if sys.hexversion<0x207000f and not is_win32:
# see #1889
if (sys.hexversion<0x207000f and not is_win32) or sys.hexversion>=0x306000f:
atexit.register(atexit_pool)
if sys.platform == 'cli' or not sys.executable: