Use correct repr() for caselessdict

Otherwise repr() may show wrong contents, which is confusing
pull/142/head
Thomas Weißschuh 2014-07-10 09:19:30 +00:00
rodzic 1af0a0760e
commit a5ca05869f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -89,7 +89,7 @@ class CaselessDict(OrderedDict):
return type(self)(super(CaselessDict, self).copy())
def __repr__(self):
return 'CaselessDict(%s)' % data_encode(self)
return 'CaselessDict(%s)' % dict(self)
def __eq__(self, other):
return self is other or dict(self.items()) == dict(other.items())