[Python-checkins] python/dist/src/Lib/idlelib configHandler.py,
1.31.8.1, 1.31.8.2 NEWS.txt, 1.23.4.9, 1.23.4.10
kbk at users.sourceforge.net
kbk at users.sourceforge.net
Mon Jan 17 21:07:00 CET 2005
Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31754
Modified Files:
Tag: release23-maint
configHandler.py NEWS.txt
Log Message:
Improve error handling when .idlerc can't be created. This is a partial
backport of configHandler.py, Revision 1.36, 11Jan05.
Index: configHandler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/configHandler.py,v
retrieving revision 1.31.8.1
retrieving revision 1.31.8.2
diff -u -d -r1.31.8.1 -r1.31.8.2
--- configHandler.py 30 Mar 2004 04:06:59 -0000 1.31.8.1
+++ configHandler.py 17 Jan 2005 20:06:47 -0000 1.31.8.2
@@ -209,10 +209,11 @@
if not os.path.exists(userDir):
try: #make the config dir if it doesn't exist yet
os.mkdir(userDir)
- except IOError:
+ except (OSError, IOError):
warn=('\n Warning: unable to create user config directory\n '+
userDir+'\n')
sys.stderr.write(warn)
+ raise SystemExit
return userDir
def GetOption(self, configType, section, option, default=None, type=None):
Index: NEWS.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/NEWS.txt,v
retrieving revision 1.23.4.9
retrieving revision 1.23.4.10
diff -u -d -r1.23.4.9 -r1.23.4.10
--- NEWS.txt 23 Dec 2004 04:26:55 -0000 1.23.4.9
+++ NEWS.txt 17 Jan 2005 20:06:47 -0000 1.23.4.10
@@ -1,7 +1,10 @@
What's New in IDLE 1.0.4?
=========================
-*Release date: XX-Dec-2004*
+*Release date: XX-Jan-2005*
+
+- Improve error handling when .idlerc can't be created. This is a partial
+ backport of configHandler.py, Revision 1.36, 11Jan05.
- The GUI was hanging if the shell window was closed while a raw_input()
was pending. Restored the quit() of the readline() mainloop().
More information about the Python-checkins
mailing list