Skip to content

Commit b4e8808

Browse files
committed
Python, Exec used query: Remove restriction that call to exec function must be Python 3. For upcoming unified parser.
1 parent c9a929f commit b4e8808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Statements/ExecUsed.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ string message() {
1919
}
2020

2121
predicate exec_function_call(Call c) {
22-
major_version() = 3 and exists(GlobalVariable exec | exec = ((Name)c.getFunc()).getVariable() and exec.getId() = "exec")
22+
exists(GlobalVariable exec | exec = ((Name)c.getFunc()).getVariable() and exec.getId() = "exec")
2323
}
2424

2525
from AstNode exec

0 commit comments

Comments
 (0)