Files
codeql/python/ql/test/2/library-tests/PointsTo/imports/Runtime.ql
2019-02-08 14:49:04 +00:00

10 lines
407 B
Plaintext

import python
from int line, ControlFlowNode f, Object o, ControlFlowNode orig
where
not f.getLocation().getFile().inStdlib() and
f.refersTo(o, orig) and line = f.getLocation().getStartLine() and line != 0 and
not o instanceof NumericObject // Omit sys.hexversion as it will change between machines
select f.getLocation().getFile().getShortName(), line, f.toString(), o.toString(), orig.toString()