summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/configHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py
index 9c106eb..4906578 100644
--- a/Lib/idlelib/configHandler.py
+++ b/Lib/idlelib/configHandler.py
@@ -143,7 +143,7 @@ class IdleUserConfParser(IdleConfParser):
try:
cfgFile = open(fname, 'w')
except IOError:
- fname.unlink()
+ os.unlink(fname)
cfgFile = open(fname, 'w')
self.write(cfgFile)
else: