summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-17 14:36:14 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-17 14:36:14 +0000
commitc77842e1becfa458dac24d4137c47bf17748db27 (patch)
treea040bedea4079acbe3258d17d0d67e492ae48a45 /src/config.py
parent483ad95f3bfc8fa84d01aee8c94e66f21d3a0139 (diff)
downloadpoezio-c77842e1becfa458dac24d4137c47bf17748db27.tar.gz
poezio-c77842e1becfa458dac24d4137c47bf17748db27.tar.bz2
poezio-c77842e1becfa458dac24d4137c47bf17748db27.tar.xz
poezio-c77842e1becfa458dac24d4137c47bf17748db27.zip
fixed #1892 save folded rosters and info_win_height in the config file
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.py b/src/config.py
index f85de1e2..685c8eb6 100644
--- a/src/config.py
+++ b/src/config.py
@@ -45,13 +45,13 @@ class Config(RawConfigParser):
"""
try:
if type(default) == int:
- res = self.getint(option)
+ res = self.getint(option, section)
elif type(default) == float:
- res = self.getfloat(option)
+ res = self.getfloat(option, section)
elif type(default) == bool:
- res = self.getboolean(option)
+ res = self.getboolean(option, section)
else:
- res = self.getstr(option)
+ res = self.getstr(option, section)
except NoOptionError:
return default
return res