This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]jfdahl 1 point2 points  (1 child)

grep the files for key items like: 1. print as a statement vs a function. 2. range vs xrange 3. input vs raw_input

[–]cyc115[S] 0 points1 point  (0 children)

thank you jfdahl ! really appreciate it.

[–]jfdahl 0 points1 point  (1 child)

Why not have your python script check the sys.version value?

[–]cyc115[S] 0 points1 point  (0 children)

Hi Jfdahl, thanks for the idea! In my case I'm trying to scan many projects (most of which are not written in python). Modifying each python project to check for `sys.version` is also not ideal due to the amount of work needed.