Adda config.getl to return a lowercase value

This commit is contained in:
mathieui 2012-04-18 15:54:16 +02:00
parent 26a9876ae8
commit 6b01e71462

View file

@ -50,6 +50,12 @@ class Config(RawConfigParser):
return default return default
return res 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): def get_by_tabname(self, option, default, tabname, fallback=True):
""" """
Try to get the value for the option. First we look in Try to get the value for the option. First we look in