Faster key in FlagMap._cmp_key
This commit is contained in:
parent
37fc258313
commit
ab049eca41
1 changed files with 1 additions and 2 deletions
|
@ -438,8 +438,7 @@ def copy(self):
|
|||
return clone
|
||||
|
||||
def _cmp_key(self):
|
||||
return ''.join(str(key) + ' '.join(str(v) for v in value)
|
||||
for key, value in sorted(self.items()))
|
||||
return tuple((k, tuple(v)) for k, v in sorted(self.iteritems()))
|
||||
|
||||
def __str__(self):
|
||||
sorted_keys = filter(
|
||||
|
|
Loading…
Reference in a new issue