From c5b884cf8114a36e2322e2ece1eedffaadac51db Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 28 Apr 2015 14:14:49 +0100 Subject: [PATCH] casless_string: added format() method --- wlauto/utils/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wlauto/utils/types.py b/wlauto/utils/types.py index f4fe9cb6..a03cf9eb 100644 --- a/wlauto/utils/types.py +++ b/wlauto/utils/types.py @@ -243,3 +243,6 @@ class caseless_string(str): if isinstance(basestring, other): other = other.lower() return cmp(self.lower(), other) + + def format(self, *args, **kwargs): + return caseless_string(super(caseless_string, self).format(*args, **kwargs))