make the options in the config files case sensitive.

This commit is contained in:
Florent Le Coz 2013-01-29 08:04:46 +01:00
parent e0136e785a
commit 73ebce5c91

View file

@ -25,6 +25,8 @@ class Config(RawConfigParser):
def __init__(self, file_name): def __init__(self, file_name):
self.file_name = file_name self.file_name = file_name
RawConfigParser.__init__(self, None) RawConfigParser.__init__(self, None)
# make the options case sensitive
self.optionxform = str
try: try:
RawConfigParser.read(self, file_name, encoding='utf-8') RawConfigParser.read(self, file_name, encoding='utf-8')
except TypeError: # python < 3.2 sucks except TypeError: # python < 3.2 sucks