Commits

Kurt B. Kaiser  committed 1e0ee32

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

  • Participants
  • Parent commits 76b2de9
  • Branches 2.5

Comments (0)

Files changed (2)

File Lib/idlelib/NEWS.txt

 
 *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)
 

File Lib/idlelib/run.py

 
     """
     if no_exitfunc:
-        del sys.exitfunc
+        try:
+            del sys.exitfunc
+        except AttributeError:
+            pass
     sys.exit(0)
 
 class MyRPCServer(rpc.RPCServer):