summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2008-01-23 22:19:23 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2008-01-23 22:19:23 (GMT)
commitb4aaa760533670b196059e6c85d0dd8626d53a51 (patch)
treeddba12235818510ad0716fdedc9b272a03d1f769 /Lib/idlelib
parent1d9a9eaa89e166d814eb55acc1d6271087fadc83 (diff)
downloadcpython-b4aaa760533670b196059e6c85d0dd8626d53a51.zip
cpython-b4aaa760533670b196059e6c85d0dd8626d53a51.tar.gz
cpython-b4aaa760533670b196059e6c85d0dd8626d53a51.tar.bz2
Could not open files in .idlerc directory if latter was hidden on Windows.
Issue 1743, Issue 1862.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/NEWS.txt5
-rw-r--r--Lib/idlelib/configHandler.py7
2 files changed, 10 insertions, 2 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index dc98e4e..d931e98 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -1,7 +1,10 @@
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.
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py
index 3318416..08f0b3d 100644
--- a/Lib/idlelib/configHandler.py
+++ b/Lib/idlelib/configHandler.py
@@ -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()