File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,13 @@ What's New in IDLE 3.8.0 (since 3.7.0)
22Released on 2019-10-20?
33======================================
44
5+ bpo-35379: When exiting IDLE, catch any AttributeError. One happens
6+ when EditorWindow.close is called twice. Printing a traceback, when
7+ IDLE is run from a terminal, is useless and annoying.
8+
9+ bpo-38183: To avoid test issues, test_idle ignores the user config
10+ directory. It no longer tries to create or access .idlerc or any files
11+ within. Users must run IDLE to discover problems with saving settings.
512
613bpo-38077: IDLE no longer adds 'argv' to the user namespace when
714initializing it. This bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
Original file line number Diff line number Diff line change @@ -1061,10 +1061,13 @@ def maybesave(self):
10611061 return self .io .maybesave ()
10621062
10631063 def close (self ):
1064- reply = self .maybesave ()
1065- if str (reply ) != "cancel" :
1066- self ._close ()
1067- return reply
1064+ try :
1065+ reply = self .maybesave ()
1066+ if str (reply ) != "cancel" :
1067+ self ._close ()
1068+ return reply
1069+ except AttributeError : # bpo-35379: close called twice
1070+ pass
10681071
10691072 def _close (self ):
10701073 if self .io .filename :
Original file line number Diff line number Diff line change 1+ When exiting IDLE, catch any AttributeError. One happens when
2+ EditorWindow.close is called twice. Printing a traceback, when IDLE is run
3+ from a terminal, is useless and annoying.
You can’t perform that action at this time.
0 commit comments