Skip to content

Commit ad60cd3

Browse files
author
Matthew Stedman
committed
added import exception for collections.abc/collections
1 parent c641ba6 commit ad60cd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

svgpath/path.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from __future__ import division
22
from math import sqrt, cos, sin, acos, degrees, radians, log
3-
from collections.abc import MutableSequence
3+
try:
4+
from collections.abc import MutableSequence
5+
except ImportError:
6+
from collections import MutableSequence
47

58
# This file contains classes for the different types of SVG path segments as
69
# well as a Path object that contains a sequence of path segments.

0 commit comments

Comments
 (0)