Remove a dict-comprehension.
Not compatible with python26.
This commit is contained in:
parent
5d2496862a
commit
4d02863b16
|
@ -128,9 +128,9 @@ class ApproxMapping(ApproxBase):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return repr({
|
return repr(dict(
|
||||||
k: self._approx_scalar(v)
|
(k, self._approx_scalar(v))
|
||||||
for k,v in self.expected.items()})
|
for k,v in self.expected.items()))
|
||||||
|
|
||||||
def __eq__(self, actual):
|
def __eq__(self, actual):
|
||||||
if actual.keys() != self.expected.keys():
|
if actual.keys() != self.expected.keys():
|
||||||
|
|
Loading…
Reference in New Issue