1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

casless_string: added format() method

This commit is contained in:
Sergei Trofimov 2015-04-28 14:14:49 +01:00
parent a4bff161aa
commit c5b884cf81

View File

@ -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))