mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-07 03:06:53 +08:00
cjdns: patch of gyp imports support python3.10 (#974)
This commit is contained in:
parent
c9a8f2d032
commit
e8856b93da
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
|
Loading…
Reference in New Issue
Block a user