From 46a3f074919621df64cbdf56daa92d7e5783a1a7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 8 Apr 2004 02:18:35 +0000 Subject: [PATCH] Made sure we can normalize for OnlySomeStrings. --- src/registry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/registry.py b/src/registry.py index 80315376a..85bc1cdf2 100644 --- a/src/registry.py +++ b/src/registry.py @@ -297,8 +297,10 @@ class String(Value): raise InvalidRegistryValue, '%r is not a string.' % s class OnlySomeStrings(String): + normalize = staticmethod(str.lower) validStrings = () def setValue(self, s): + s = self.normalize(s) if s in self.validStrings: String.setValue(self, s) else: