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
No known key found for this signature in database
GPG Key ID: C6238221D17CAFAE
1 changed files with 3 additions and 3 deletions

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():