summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kolodyazhny <e0ne@e0ne.info>2022-02-14 10:51:00 +0200
committerGitHub <noreply@github.com>2022-02-14 10:51:00 +0200
commitbbbb398a8a1404d76a55357f8ebab1aa781e0ec3 (patch)
tree5cdb54004aa5b222e2dc434e1ec86056116ce095
parent6bf001ee6ac70ffb1bbcf670c4450e233bec6b7c (diff)
parent147a49013a2f72f20edd058d9df7175d1283e2b1 (diff)
downloadpyscss-bbbb398a8a1404d76a55357f8ebab1aa781e0ec3.tar.gz
Merge pull request #411 from chrisjsewell/fix-deprecate/collections
Fix collections deprecation warning
-rw-r--r--scss/types.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scss/types.py b/scss/types.py
index c35905a..acaf72c 100644
--- a/scss/types.py
+++ b/scss/types.py
@@ -3,7 +3,10 @@ from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
-from collections import Iterable
+try:
+ from collections.abc import Iterable
+except ImportError:
+ from collections import Iterable
import colorsys
from fractions import Fraction
import operator