mirror of
https://github.com/github/codeql.git
synced 2026-01-13 06:24:46 +01:00
9 lines
292 B
Plaintext
9 lines
292 B
Plaintext
|
|
import python
|
|
import semmle.python.types.Version
|
|
|
|
from VersionGuard vg, Location l, int v
|
|
where l = vg.getLastNode().getLocation() and
|
|
l.getFile().getName().matches("%test.py")
|
|
and (if vg.isTrue() then v = major_version() else v = 5-major_version())
|
|
select l.getStartLine(), vg.toString(), v |