[Python-checkins] r60225 - python/trunk/Lib/idlelib/NEWS.txt python/trunk/Lib/idlelib/configHandler.py
Neal Norwitz
nnorwitz at gmail.com
Fri Jan 25 05:51:26 CET 2008
On Jan 23, 2008 2:19 PM, kurt.kaiser <python-checkins at python.org> wrote:
> Author: kurt.kaiser
> Date: Wed Jan 23 23:19:23 2008
> New Revision: 60225
>
> Modified:
> python/trunk/Lib/idlelib/NEWS.txt
> python/trunk/Lib/idlelib/configHandler.py
> Log:
> Could not open files in .idlerc directory if latter was hidden on Windows.
> Issue 1743, Issue 1862.
>
> Modified: python/trunk/Lib/idlelib/configHandler.py
> ==============================================================================
> --- python/trunk/Lib/idlelib/configHandler.py (original)
> +++ python/trunk/Lib/idlelib/configHandler.py Wed Jan 23 23:19:23 2008
> @@ -139,7 +139,12 @@
>
> """
> if not self.IsEmpty():
> - cfgFile=open(self.file,'w')
> + fname = self.file
> + try:
> + cfgFile = open(fname, 'w')
> + except IOError:
> + fname.unlink()
Isn't fname a string? Should this be os.unlink(fname)?
n
More information about the Python-checkins
mailing list