blob: 1848654404b42037475400b11d870d87c1a5b038 [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
Andrew Geissler9aee5002022-03-30 16:27:02 +000017@@ -4,7 +4,7 @@
18
19 from __future__ import with_statement
20
21-import collections
22+import collections.abc
23 import errno
24 import filecmp
25 import os.path
Andrew Geisslereff27472021-10-29 15:35:00 -050026@@ -494,7 +494,7 @@ def uniquer(seq, idfun=None):
27
28
29 # Based on http://code.activestate.com/recipes/576694/.
30-class OrderedSet(collections.MutableSet):
31+class OrderedSet(collections.abc.MutableSet):
32 def __init__(self, iterable=None):
33 self.end = end = []
34 end += [None, end, end] # sentinel node for doubly linked list