mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

Fixed MutableSequence import (importing from collections is deprecated) #100

Closed abey79 closed 4 years ago

abey79 commented 5 years ago

Importing MutableSequence from collections is deprecated and leads to annoying warnings for dependent projects using pytest:

venv/lib/python3.7/site-packages/svgpathtools/path.py:9
  .../venv/lib/python3.7/site-packages/svgpathtools/path.py:9: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
    from collections import MutableSequence

-- Docs: https://docs.pytest.org/en/latest/warnings.html

This fix should be backward compatible (reference).