From ad60cd3f710c4762a0be0fac175867ec60fb10ab Mon Sep 17 00:00:00 2001 From: Matthew Stedman Date: Tue, 7 Dec 2021 10:40:55 +0800 Subject: [PATCH] added import exception for collections.abc/collections --- svgpath/path.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/svgpath/path.py b/svgpath/path.py index 1ea1206..6e1448d 100644 --- a/svgpath/path.py +++ b/svgpath/path.py @@ -1,6 +1,9 @@ from __future__ import division from math import sqrt, cos, sin, acos, degrees, radians, log -from collections.abc import MutableSequence +try: + from collections.abc import MutableSequence +except ImportError: + from collections import MutableSequence # This file contains classes for the different types of SVG path segments as # well as a Path object that contains a sequence of path segments.