Watchdog: For python 3.7, we should use collections.abc.MutableSet

Created on 9 Nov 2018  路  3Comments  路  Source: gorakhargosh/watchdog

/home/crunch/.cache/pypoetry/virtualenvs/musicbot-py3.7/lib/python3.7/site-packages/watchdog/utils/bricks.py:175: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
class OrderedSet(collections.MutableSet):

Simple fix : use collections.abc.MutableSet

Most helpful comment

Oups, already fixed in master !

All 3 comments

Oups, already fixed in master !

This warning is present in 0.9.0, which is the current version at time of typing:
image
https://pypi.org/project/watchdog/#history

Note that 0.9.0 was released on Aug 28, 2018. The fix was implemented on Sep 10, 2018 (see https://github.com/gorakhargosh/watchdog/commit/69871314de0e5d8422c070bc91fed26ed5ce94a0#diff-1fc0dfc77c8110671a21b65dc4b42543R179)

It doesn't look like there's another release yet. See https://github.com/gorakhargosh/watchdog/issues/485

Was this page helpful?
0 / 5 - 0 ratings

Related issues

boxed picture boxed  路  6Comments

TiagoOliveiraMarques picture TiagoOliveiraMarques  路  4Comments

AndreaCrotti picture AndreaCrotti  路  3Comments

SamSchott picture SamSchott  路  4Comments

Ajordat picture Ajordat  路  4Comments