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