summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-18 15:54:16 +0200
committermathieui <mathieui@mathieui.net>2012-04-18 15:54:16 +0200
commit6b01e714623b6d7c1c60c98019c52633b2788250 (patch)
tree637f9d528e34801abb3147be680eadb946bae171 /src
parent26a9876ae88fd111a064ba5946f2f0524adae06e (diff)
downloadpoezio-6b01e714623b6d7c1c60c98019c52633b2788250.tar.gz
poezio-6b01e714623b6d7c1c60c98019c52633b2788250.tar.bz2
poezio-6b01e714623b6d7c1c60c98019c52633b2788250.tar.xz
poezio-6b01e714623b6d7c1c60c98019c52633b2788250.zip
Adda config.getl to return a lowercase value
Diffstat (limited to 'src')
-rw-r--r--src/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.py b/src/config.py
index b4b07491..e99572d7 100644
--- a/src/config.py
+++ b/src/config.py
@@ -50,6 +50,12 @@ class Config(RawConfigParser):
return default
return res
+ def getl(self, option, default, section=DEFSECTION):
+ """
+ get a value and return it lowercase
+ """
+ return self.get(option, default, section).lower()
+
def get_by_tabname(self, option, default, tabname, fallback=True):
"""
Try to get the value for the option. First we look in