mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Python: use updated names
This commit is contained in:
@@ -43,7 +43,7 @@ private module Input implements InputSig<PythonDataFlow> {
|
||||
predicate uniqueEnclosingCallableExclude(Node n) {
|
||||
// `CaptureNode`s miss enclosing calables in some cases.
|
||||
exists(Function func |
|
||||
func = n.(CaptureNode).getSynthesizedCaptureNode().getEnclosingCallable()
|
||||
func = n.(SynthCaptureNode).getSynthesizedCaptureNode().getEnclosingCallable()
|
||||
|
|
||||
// This can happen if `func` is a comprehension.
|
||||
// In that case, there is no associated DataFlowCallable.
|
||||
@@ -51,7 +51,7 @@ private module Input implements InputSig<PythonDataFlow> {
|
||||
)
|
||||
or
|
||||
// We do not have classes as `DataFlowCallable`s.
|
||||
n.(CaptureNode).getSynthesizedCaptureNode().getEnclosingCallable() instanceof Class
|
||||
n.(SynthCaptureNode).getSynthesizedCaptureNode().getEnclosingCallable() instanceof Class
|
||||
}
|
||||
|
||||
predicate uniqueCallEnclosingCallableExclude(DataFlowCall call) {
|
||||
|
||||
Reference in New Issue
Block a user