From b767536e38552f059e7e9274c3c6c66ef01c500a Mon Sep 17 00:00:00 2001 From: Antoine Beyeler <49431240+abey79@users.noreply.github.com> Date: Sat, 20 Jun 2020 03:52:09 +0200 Subject: [PATCH] Fixed MutableSequence import (importing from collections is deprecated) (#100) --- svgpathtools/path.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/svgpathtools/path.py b/svgpathtools/path.py index 34c6765..93a6e2f 100644 --- a/svgpathtools/path.py +++ b/svgpathtools/path.py @@ -6,7 +6,10 @@ Arc.""" from __future__ import division, absolute_import, print_function from math import sqrt, cos, sin, acos, asin, degrees, radians, log, pi, ceil from cmath import exp, sqrt as csqrt, phase -from collections import MutableSequence +try: + from collections.abc import MutableSequence # noqa +except ImportError: + from collections import MutableSequence # noqa from warnings import warn from operator import itemgetter import numpy as np