Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 1 | From bfe579283e5fcab60172818bfe4e6e1d40c2bed0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Kurt Kiefer <kurt.kiefer@arthrex.com> |
| 3 | Date: Mon, 18 Oct 2021 11:21:14 -0700 |
| 4 | Subject: [PATCH] Fix for Python 3.10 compatibility |
| 5 | |
| 6 | The collections.abc module replaces collections for Python 3.10 |
| 7 | |
| 8 | Signed-off-by: Kurt Kiefer <kurt.kiefer@arthrex.com> |
| 9 | --- |
| 10 | pylib/gyp/common.py | 2 +- |
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/pylib/gyp/common.py b/pylib/gyp/common.py |
| 14 | index b268d229..4f9cb0ec 100644 |
| 15 | --- a/pylib/gyp/common.py |
| 16 | +++ b/pylib/gyp/common.py |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 17 | @@ -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 Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 26 | @@ -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 |