mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
ConfigParser should be case sensitive
This commit is contained in:
@@ -6,6 +6,10 @@ import sys
|
||||
|
||||
def main(source_ini, update_ini):
|
||||
parser = Parser()
|
||||
# By default, the parser is case insensitve and rewrites config
|
||||
# keys to lowercase. reddit is case sensitive, however
|
||||
# See: http://docs.python.org/library/configparser.html#ConfigParser.RawConfigParser.optionxform
|
||||
parser.optionxform = str
|
||||
# parser.read() will "fail" silently if the file is
|
||||
# not found; use open() and parser.readfp() to fail
|
||||
# on missing (or unreadable, etc.) file
|
||||
|
||||
Reference in New Issue
Block a user