mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 19:14:31 +04:00
cjdns: patch of gyp imports support python3.10 (#974)
This commit is contained in:
15
cjdns/patches/040-gyp-python_310.patch
Normal file
15
cjdns/patches/040-gyp-python_310.patch
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
--- a/node_build/dependencies/libuv/build/gyp/pylib/gyp/common.py
|
||||||
|
+++ b/node_build/dependencies/libuv/build/gyp/pylib/gyp/common.py
|
||||||
|
@@ -4,7 +4,11 @@
|
||||||
|
|
||||||
|
from __future__ import with_statement
|
||||||
|
|
||||||
|
-import collections
|
||||||
|
+try:
|
||||||
|
+ # Python 3.10
|
||||||
|
+ from six.moves import collections_abc as collections
|
||||||
|
+except ImportError:
|
||||||
|
+ import collections
|
||||||
|
import errno
|
||||||
|
import filecmp
|
||||||
|
import os.path
|
||||||
Reference in New Issue
Block a user