Commit 98b09a09 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

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

parent 609dc242
...@@ -3,6 +3,8 @@ What's New in IDLE 2.6a1? ...@@ -3,6 +3,8 @@ What's New in IDLE 2.6a1?
*Release date: XX-XXX-2008* *Release date: XX-XXX-2008*
- There was an error on exit if no sys.exitfunc was defined. Issue 1647.
- Could not open files in .idlerc directory if latter was hidden on Windows. - Could not open files in .idlerc directory if latter was hidden on Windows.
Issue 1743, Issue 1862. Issue 1743, Issue 1862.
......
...@@ -206,7 +206,10 @@ def exit(): ...@@ -206,7 +206,10 @@ def exit():
""" """
if no_exitfunc: if no_exitfunc:
try:
del sys.exitfunc del sys.exitfunc
except AttributeError:
pass
sys.exit(0) sys.exit(0)
class MyRPCServer(rpc.RPCServer): class MyRPCServer(rpc.RPCServer):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment