idank / bashlex

Python parser for bash
GNU General Public License v3.0
550 stars 94 forks source link

Fix import warnings on Python3 #52

Closed joerick closed 4 years ago

joerick commented 4 years ago

Lately I've been seeing these warnings in our tests on joerick/cibuildwheel

C:\Python37\lib\site-packages\bashlex\utils.py:3
  C:\Python37\lib\site-packages\bashlex\utils.py:3: 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
    class typedset(collections.MutableSet):
C:\Python37\lib\site-packages\bashlex\utils.py:51
  C:\Python37\lib\site-packages\bashlex\utils.py:51: 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
    class frozendict(collections.Mapping):

This PR updates the import, but keeps a fallback for Python 2 support.

joerick commented 4 years ago

Hello @idank! Any chance we could get a release soon?