Commit 0b45f36c 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.
Backport r60225, r60745
parent f9259d72
...@@ -3,6 +3,9 @@ What's New in IDLE 1.2.2c1? ...@@ -3,6 +3,9 @@ What's New in IDLE 1.2.2c1?
*Release date: XX-FEB-2008* *Release date: XX-FEB-2008*
- Could not open files in .idlerc directory if latter was hidden on Windows.
Issue 1743, Issue 1862. (backport r60225, r60745)
- format_paragraph_event wasn't returning a 'break' (backport r59453) - format_paragraph_event wasn't returning a 'break' (backport r59453)
- Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented; - Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented;
......
...@@ -142,7 +142,12 @@ class IdleUserConfParser(IdleConfParser): ...@@ -142,7 +142,12 @@ class IdleUserConfParser(IdleConfParser):
""" """
if not self.IsEmpty(): if not self.IsEmpty():
cfgFile=open(self.file,'w') fname = self.file
try:
cfgFile = open(fname, 'w')
except IOError:
os.unlink(fname)
cfgFile = open(fname, 'w')
self.write(cfgFile) self.write(cfgFile)
else: else:
self.RemoveFile() 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