Skip to content

Commit

Permalink
Fix version range compat error with collections.abc
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Jan 14, 2019
1 parent a8d61b7 commit 1cf0747
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ensure/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import types
import re
from unittest.case import TestCase
from collections.abc import Mapping, Iterable
try:
from collections.abc import Mapping, Iterable
except ImportError:
from collections import Mapping, Iterable

from six import string_types

Expand Down

0 comments on commit 1cf0747

Please sign in to comment.