There was an error on exit if no sys.exitfunc was defined. Issue 1647.

Backport r60227
This commit is contained in:
Kurt B. Kaiser 2008-02-14 04:45:30 +00:00
parent 0b45f36c81
commit 38fd069a73
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,9 @@ What's New in IDLE 1.2.2c1?
*Release date: XX-FEB-2008*
- There was an error on exit if no sys.exitfunc was defined. Issue 1647.
(backport r60227)
- Could not open files in .idlerc directory if latter was hidden on Windows.
Issue 1743, Issue 1862. (backport r60225, r60745)

View File

@ -205,7 +205,10 @@ def exit():
"""
if no_exitfunc:
del sys.exitfunc
try:
del sys.exitfunc
except AttributeError:
pass
sys.exit(0)
class MyRPCServer(rpc.RPCServer):