collections abc deprecation warning in watchdog fixed
As mentioned here there is a new deprecation warning, caused by the vendored version of watchdog. This small fix removes that warning. It uses the same `six` method used in
@@ -37,7 +37,7 @@ Classes
"""
import sys
-import collections
+from six.moves.collections_abc import MutableSet
from .compat import queue
class SkipRepeatsQueue(queue.Queue):
@@ -172,7 +172,7 @@ class OrderedSetQueue(queue.Queue):
if sys.version_info >= (2, 6, 0):
KEY, PREV, NEXT = list(range(3))
- class OrderedSet(collections.MutableSet):
+ class OrderedSet(MutableSet):
"""
Implementation based on a doubly-linked link and an internal dictionary.
