mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
python: Import MutableSet and MutableSequence from collections.abc.
This commit is contained in:
parent
ea813cd85d
commit
ba7c38da4a
@ -494,7 +494,7 @@ def uniquer(seq, idfun=None):
|
||||
|
||||
|
||||
# Based on http://code.activestate.com/recipes/576694/.
|
||||
class OrderedSet(collections.MutableSet):
|
||||
class OrderedSet(collections.abc.MutableSet):
|
||||
def __init__(self, iterable=None):
|
||||
self.end = end = []
|
||||
end += [None, end, end] # sentinel node for doubly linked list
|
||||
|
@ -8,7 +8,8 @@ dictionary of values, and returns a new iterable of test objects. It is
|
||||
possible to define custom filters if the built-in ones are not enough.
|
||||
"""
|
||||
|
||||
from collections import defaultdict, MutableSequence
|
||||
from collections import defaultdict
|
||||
from collections.abc import MutableSequence
|
||||
import itertools
|
||||
import os
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user