From ba7c38da4ac1073f51938364998dfc025c8dfd18 Mon Sep 17 00:00:00 2001 From: Patrick Laimbock Date: Tue, 18 Jan 2022 16:08:15 +0100 Subject: [PATCH] python: Import MutableSet and MutableSequence from collections.abc. --- media/webrtc/trunk/tools/gyp/pylib/gyp/common.py | 2 +- testing/mozbase/manifestparser/manifestparser/filters.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/media/webrtc/trunk/tools/gyp/pylib/gyp/common.py b/media/webrtc/trunk/tools/gyp/pylib/gyp/common.py index b268d229a48..4f9cb0eca72 100644 --- a/media/webrtc/trunk/tools/gyp/pylib/gyp/common.py +++ b/media/webrtc/trunk/tools/gyp/pylib/gyp/common.py @@ -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 diff --git a/testing/mozbase/manifestparser/manifestparser/filters.py b/testing/mozbase/manifestparser/manifestparser/filters.py index 3bc7c3a6054..cd5b8268358 100644 --- a/testing/mozbase/manifestparser/manifestparser/filters.py +++ b/testing/mozbase/manifestparser/manifestparser/filters.py @@ -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