diff options
author | mathieui <mathieui@mathieui.net> | 2012-04-18 15:54:16 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-04-18 15:54:16 +0200 |
commit | 6b01e714623b6d7c1c60c98019c52633b2788250 (patch) | |
tree | 637f9d528e34801abb3147be680eadb946bae171 /src/config.py | |
parent | 26a9876ae88fd111a064ba5946f2f0524adae06e (diff) | |
download | poezio-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/config.py')
-rw-r--r-- | src/config.py | 6 |
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 |