Make hooke.config.HookeConfigParser's options case sensitive (vs. all lowercase)
[hooke.git] / hooke / config.py
index 57756a0824a89b956af5cdf4c8bd6f0474242733..97d645b8658d09c5390820a518fc5bec1ba08c91 100644 (file)
@@ -258,6 +258,15 @@ class HookeConfigParser (configparser.RawConfigParser):
         if local_fp:
             fp.close()
 
+    def optionxform(self, option):
+        """
+
+        Overrides lowercasing behaviour of
+        :meth:`ConfigParser.RawConfigParser.optionxform`.
+        """
+        return option
+
+
 class TestHookeConfigParser (unittest.TestCase):
     def test_queue_safe(self):
         """Ensure :class:`HookeConfigParser` is Queue-safe.