blob: 2b88023fe881e10d75cbdde32e7b6cddcdfa5e7b [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From bfe579283e5fcab60172818bfe4e6e1d40c2bed0 Mon Sep 17 00:00:00 2001
2From: Kurt Kiefer <kurt.kiefer@arthrex.com>
3Date: Mon, 18 Oct 2021 11:21:14 -0700
4Subject: [PATCH] Fix for Python 3.10 compatibility
5
6The collections.abc module replaces collections for Python 3.10
7
8Signed-off-by: Kurt Kiefer <kurt.kiefer@arthrex.com>
9---
10 pylib/gyp/common.py | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/pylib/gyp/common.py b/pylib/gyp/common.py
14index b268d229..4f9cb0ec 100644
15--- a/pylib/gyp/common.py
16+++ b/pylib/gyp/common.py
17@@ -494,7 +494,7 @@ def uniquer(seq, idfun=None):
18
19
20 # Based on http://code.activestate.com/recipes/576694/.
21-class OrderedSet(collections.MutableSet):
22+class OrderedSet(collections.abc.MutableSet):
23 def __init__(self, iterable=None):
24 self.end = end = []
25 end += [None, end, end] # sentinel node for doubly linked list