mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
There was an error on exit if no sys.exitfunc was defined. Issue 1647.
This commit is contained in:
parent
6f4ee2d48f
commit
f30ba3dd66
2 changed files with 6 additions and 1 deletions
|
@ -206,7 +206,10 @@ def exit():
|
|||
|
||||
"""
|
||||
if no_exitfunc:
|
||||
del sys.exitfunc
|
||||
try:
|
||||
del sys.exitfunc
|
||||
except AttributeError:
|
||||
pass
|
||||
sys.exit(0)
|
||||
|
||||
class MyRPCServer(rpc.RPCServer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue