Skip to content

Commit

Permalink
ConfigParser should be case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitche committed Mar 13, 2012
1 parent aa3bb98 commit 975c06b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions r2/updateini.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

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
Expand Down

0 comments on commit 975c06b

Please sign in to comment.