Remove a dict-comprehension.

Not compatible with python26.
This commit is contained in:
Kale Kundert
2017-06-15 18:56:09 -07:00
parent 5d2496862a
commit 4d02863b16

View File

@@ -128,9 +128,9 @@ class ApproxMapping(ApproxBase):
"""
def __repr__(self):
return repr({
k: self._approx_scalar(v)
for k,v in self.expected.items()})
return repr(dict(
(k, self._approx_scalar(v))
for k,v in self.expected.items()))
def __eq__(self, actual):
if actual.keys() != self.expected.keys():