Skip to content

Commit 020d837

Browse files
committed
Use branch of source-inspector for get_tree_and_language_info
Signed-off-by: Jono Yang <[email protected]>
1 parent bd486aa commit 020d837

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scanpipe/pipes/d2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from go_inspector.plugin import collect_and_parse_symbols
4848
from packagedcode.npm import NpmPackageJsonHandler
4949
from rust_inspector.binary import collect_and_parse_rust_symbols
50-
from source_inspector.symbols_tree_sitter import get_tree
50+
from source_inspector.symbols_tree_sitter import get_tree_and_language_info
5151
from summarycode.classify import LEGAL_STARTS_ENDS
5252

5353
from aboutcode.pipeline import LoopProgress
@@ -2173,7 +2173,7 @@ def map_python_pyx_to_binaries(project, logger=None):
21732173
for resource in from_resources:
21742174
# open Cython source file, create AST, parse it for function definitions
21752175
# and save them in a list
2176-
tree, _ = get_tree(resource.location)
2176+
tree, _ = get_tree_and_language_info(resource.location)
21772177
function_definitions = [
21782178
node
21792179
for node in tree.root_node.children

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ install_requires =
8686
rust-inspector==0.1.0
8787
binary-inspector==0.1.2
8888
python-inspector==0.14.0
89-
source-inspector==0.6.1; sys_platform != "darwin" and platform_machine != "arm64"
89+
source-inspector @ git+https://github.com/aboutcode-org/source-inspector@990e93b9c6bcb28e105e50af6507a0a2f0515213
9090
aboutcode-toolkit==11.1.1
9191
# Utilities
9292
XlsxWriter==3.2.5

0 commit comments

Comments
 (0)