Skip to content

Commit

Permalink
support python2 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalchan committed Jul 13, 2020
1 parent 626dacd commit 180434f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions alchemy_mock/comparison.py
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import collections.abc

import six
from six.moves.collections_abc import Mapping
from sqlalchemy import func
from sqlalchemy.sql.expression import column, or_

Expand Down Expand Up @@ -147,7 +146,7 @@ def _(v):
for i, j in six.moves.zip_longest(self.expr, other)
)

elif isinstance(self.expr, collections.abc.Mapping):
elif isinstance(self.expr, Mapping):
same_keys = self.expr.keys() == other.keys()
return same_keys and all(
_(self.expr[k]) == other[k] for k in self.expr.keys()
Expand Down

0 comments on commit 180434f

Please sign in to comment.