Commit d36d1e32 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

Could not open files in .idlerc directory if latter was hidden on Windows.

Issue 1743, Issue 1862.
parent 48c2ef8a
What's New in IDLE 2.6a1?
=========================
*Release date: XX-XXX-200X*
*Release date: XX-XXX-2008*
- Could not open files in .idlerc directory if latter was hidden on Windows.
Issue 1743, Issue 1862.
- Configure Dialog: improved layout for keybinding. Patch 1457 Tal Einat.
......
......@@ -139,7 +139,12 @@ class IdleUserConfParser(IdleConfParser):
"""
if not self.IsEmpty():
cfgFile=open(self.file,'w')
fname = self.file
try:
cfgFile = open(fname, 'w')
except IOError:
fname.unlink()
cfgFile = open(fname, 'w')
self.write(cfgFile)
else:
self.RemoveFile()
......
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