Skip to content

Commit

Permalink
Fix Python 3.7 DeprecationWarning with ABCs
Browse files Browse the repository at this point in the history
  • Loading branch information
Léa Klein authored and BoboTiG committed Sep 10, 2018
1 parent b78fc0c commit 6987131
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/watchdog/utils/bricks.py
Expand Up @@ -37,7 +37,11 @@
"""

import sys
import collections
try:
from collections.abc import MutableSet
except ImportError:
from collections import MutableSet

from .compat import queue

class SkipRepeatsQueue(queue.Queue):
Expand Down Expand Up @@ -172,7 +176,7 @@ def _get(self):
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.
Expand Down

0 comments on commit 6987131

Please sign in to comment.