Commits

Kurt B. Kaiser  committed 76b2de9

Could not open files in .idlerc directory if latter was hidden on Windows.
Issue 1743, Issue 1862.
Backport r60225, r60745

  • Participants
  • Parent commits 083bf6e
  • Branches 2.5

Comments (0)

Files changed (2)

File Lib/idlelib/NEWS.txt

 
 *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)
 
 - Corrected some bugs in AutoComplete.  Also, Page Up/Down in ACW implemented;                                                                               

File Lib/idlelib/configHandler.py

 
         """
         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)
         else:
             self.RemoveFile()