mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
414 B
Plaintext
18 lines
414 B
Plaintext
import python
|
|
private import LegacyPointsTo
|
|
|
|
from ModuleValue mv, string usage
|
|
where
|
|
// builtin module has different name in Python 2 and 3
|
|
not mv = Module::builtinModule() and
|
|
(
|
|
mv.isUsedAsModule() and usage = "isUsedAsModule"
|
|
or
|
|
mv.isUsedAsScript() and usage = "isUsedAsScript"
|
|
or
|
|
not mv.isUsedAsModule() and
|
|
not mv.isUsedAsScript() and
|
|
usage = "<UNKNOWN>"
|
|
)
|
|
select mv, usage
|