make the options in the config files case sensitive.
This commit is contained in:
parent
e0136e785a
commit
73ebce5c91
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue