mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 19:02:31 +01:00
casless_string: added format() method
This commit is contained in:
@@ -243,3 +243,6 @@ class caseless_string(str):
|
|||||||
if isinstance(basestring, other):
|
if isinstance(basestring, other):
|
||||||
other = other.lower()
|
other = other.lower()
|
||||||
return cmp(self.lower(), other)
|
return cmp(self.lower(), other)
|
||||||
|
|
||||||
|
def format(self, *args, **kwargs):
|
||||||
|
return caseless_string(super(caseless_string, self).format(*args, **kwargs))
|
||||||
|
Reference in New Issue
Block a user