summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 03:42:25 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 03:42:25 +0000
commit324c6f87e0a8506b5a0884024844d5d83fec2524 (patch)
treeb7f1c498cc9364d57672c8730d153cba527b523b /src/config.py
parentdbab1876f85e60ebda430b4b5d2c645b73ef3680 (diff)
downloadpoezio-324c6f87e0a8506b5a0884024844d5d83fec2524.tar.gz
poezio-324c6f87e0a8506b5a0884024844d5d83fec2524.tar.bz2
poezio-324c6f87e0a8506b5a0884024844d5d83fec2524.tar.xz
poezio-324c6f87e0a8506b5a0884024844d5d83fec2524.zip
fixed #1110
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config.py b/src/config.py
index 95f85c98..302716f6 100644
--- a/src/config.py
+++ b/src/config.py
@@ -48,9 +48,6 @@ class Config(RawConfigParser):
else:
res = self.getstr(option)
except NoOptionError:
- # TODO
- # logger.info('No value found in config file "%s" from option [%s]. Defaulting to "%s"' \
- # % (self.file_name, option, default))
return default
return res
@@ -73,7 +70,7 @@ class Config(RawConfigParser):
RawConfigParser.set(self, self.defsection, option, value)
def save(self):
- f = copen(self.filename, "w", "utf-8", "ignore")
+ f = open(self.file_name, "w")
RawConfigParser.write(self, f)
f.close()