From 1f0bb51e76d4899c57cc32ba33b28f0e32c1371a Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Fri, 15 Aug 2008 13:22:07 +0100 Subject: [PATCH] Make sections and settings case-insensitive (stored lowercase). When we get profiles we should be case-preserving, but this will do for now. --- terminatorlib/configfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/configfile.py b/terminatorlib/configfile.py index 8c09bcfa..f2e3df03 100644 --- a/terminatorlib/configfile.py +++ b/terminatorlib/configfile.py @@ -118,11 +118,11 @@ class ConfigFile: def _section(self, section): dbg("Section %s" % repr(section)) - self._currsection = section + self._currsection = section.lower() def _setting(self, setting): dbg("Setting %s" % repr(setting)) - self._currsetting = setting + self._currsetting = setting.lower() def _value(self, value): dbg("Value %s" % repr(value))