mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02:00
Python: Use API graphs instead of points-to for simple built-ins
Also extends the list of known built-ins slightly, to add some that were missing.
This commit is contained in:
@@ -32,7 +32,9 @@ module Builtins {
|
||||
"UnicodeDecodeError", "UnicodeEncodeError", "UnicodeError", "UnicodeTranslateError",
|
||||
"UnicodeWarning", "UserWarning", "ValueError", "Warning", "ZeroDivisionError",
|
||||
// Added for compatibility
|
||||
"exec"
|
||||
"exec",
|
||||
// Added by the `site` module (available by default unless `-S` is used)
|
||||
"copyright", "credits", "exit", "quit"
|
||||
]
|
||||
or
|
||||
// Built-in constants shared between Python 2 and 3
|
||||
@@ -51,8 +53,8 @@ module Builtins {
|
||||
or
|
||||
// Python 2 only
|
||||
result in [
|
||||
"basestring", "cmp", "execfile", "file", "long", "raw_input", "reduce", "reload", "unichr",
|
||||
"unicode", "xrange"
|
||||
"apply", "basestring", "cmp", "execfile", "file", "long", "raw_input", "reduce", "reload",
|
||||
"unichr", "unicode", "xrange"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user