Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VizualAbstract committed Jul 26, 2019
1 parent a67613d commit fd93961
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sqlalchemy_utils/generic.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
from collections.abc import Mapping, Sequence
from collections.abc import Iterable
except ImportError: # For python 2.7 support
from collections import Mapping, Sequence
from collections import Iterable

import six
import sqlalchemy as sa
Expand Down
4 changes: 2 additions & 2 deletions sqlalchemy_utils/types/arrow.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import absolute_import

try:
from collections.abc import Mapping, Sequence
from collections.abc import Iterable
except ImportError: # For python 2.7 support
from collections import Mapping, Sequence
from collections import Iterable
from datetime import datetime

import six
Expand Down
4 changes: 2 additions & 2 deletions sqlalchemy_utils/types/range.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ class Event(Base):
.. _intervals: https://github.com/kvesteri/intervals
"""
try:
from collections.abc import Mapping, Sequence
from collections.abc import Iterable
except ImportError: # For python 2.7 support
from collections import Mapping, Sequence
from collections import Iterable
from datetime import timedelta

import six
Expand Down
4 changes: 2 additions & 2 deletions sqlalchemy_utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import sys
try:
from collections.abc import Mapping, Sequence
from collections.abc import Iterable
except ImportError: # For python 2.7 support
from collections import Mapping, Sequence
from collections import Iterable

import six

Expand Down

0 comments on commit fd93961

Please sign in to comment.