mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
17 lines
451 B
Plaintext
17 lines
451 B
Plaintext
/**
|
|
* Much of the QL library handling integral values assumes that
|
|
* equivalence of the DB entities implies equivalence of the
|
|
* Python object and vice-versa.
|
|
* In Python 2, 1L == 1, which can cause problems, so we
|
|
* normalise all longs to ints.
|
|
*/
|
|
|
|
import python
|
|
|
|
from NumericObject n
|
|
where
|
|
exists(IntegerLiteral i | i.getLiteralObject() = n |
|
|
i.getEnclosingModule().getFile().getShortName() = "test.py"
|
|
)
|
|
select n.toString(), n.repr()
|