SMAT-Lab / Scalpel

Scalpel: The Python Static Analysis Framework
Apache License 2.0
295 stars 46 forks source link

Can Scalpel support both python 2 and python 3 projects? #124

Closed ycaibb closed 8 months ago

ycaibb commented 8 months ago

Hi, thank you for your efforts to build such executing projects!

I am using the call graph construction in the Scalpel to analyze a project using both python 2 and python 3. My question is, can Scalpel support analyze python 2? Thanks!

Jarvx commented 8 months ago

Hi, thanks for your interests. The project is built up Python's AST module. Since ASTs of Python have constantly changing. We do not intend to support Python2. However, you can do some simple adaptions to make it work. There will be some old language constructs to be taken into account if you re-developement.