Make the configparser case sensitive.
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Tue, 24 Feb 2015 16:48:24 +0000 (17:48 +0100)
committerSimo Sorce <simo@redhat.com>
Tue, 24 Feb 2015 17:58:45 +0000 (12:58 -0500)
Per the instructions of
https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.optionxform

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
ipsilon/util/data.py

index 20dd6aa..94d402b 100644 (file)
@@ -136,6 +136,7 @@ class FileStore(Log):
         timestamp = stat.st_mtime
         if self._config is None or timestamp > self._timestamp:
             self._config = ConfigParser.RawConfigParser()
+            self._config.optionxform = str
             self._config.read(self._filename)
         return self._config