summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sewell <chrisj_sewell@hotmail.com>2020-09-03 19:51:14 +0100
committerChris Sewell <chrisj_sewell@hotmail.com>2020-09-03 19:51:14 +0100
commit147a49013a2f72f20edd058d9df7175d1283e2b1 (patch)
tree5cdb54004aa5b222e2dc434e1ec86056116ce095
parent6bf001ee6ac70ffb1bbcf670c4450e233bec6b7c (diff)
downloadpyscss-147a49013a2f72f20edd058d9df7175d1283e2b1.tar.gz
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