Added
Link Here
|
1 |
--- pylib/gyp/common.py.orig 2020-05-12 14:59:53 UTC |
2 |
+++ pylib/gyp/common.py |
3 |
@@ -12,6 +12,11 @@ import sys |
4 |
import tempfile |
5 |
import sys |
6 |
|
7 |
+if sys.version_info.major == 3 and sys.version_info.minor >= 10: |
8 |
+ from collections.abc import MutableSet |
9 |
+ collections.MutableSet = collections.abc.MutableSet |
10 |
+else: |
11 |
+ from collections import MutableSet |
12 |
|
13 |
# A minimal memoizing decorator. It'll blow up if the args aren't immutable, |
14 |
# among other "problems". |
15 |
@@ -494,7 +499,7 @@ def uniquer(seq, idfun=None): |
16 |
|
17 |
|
18 |
# Based on http://code.activestate.com/recipes/576694/. |
19 |
-class OrderedSet(collections.MutableSet): |
20 |
+class OrderedSet(MutableSet): |
21 |
def __init__(self, iterable=None): |
22 |
self.end = end = [] |
23 |
end += [None, end, end] # sentinel node for doubly linked list |