From 6b01e714623b6d7c1c60c98019c52633b2788250 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 18 Apr 2012 15:54:16 +0200 Subject: [PATCH] Adda config.getl to return a lowercase value --- src/config.py | 6 ++++++ 1 file changed, 6 insertions(+) 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