From 1847a5713b0690fa8d39b171ed0971c44e2e6705 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Thu, 10 Mar 2022 09:44:29 +0100 Subject: [PATCH] remove TODO --- python/ql/lib/semmle/python/Function.qll | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/ql/lib/semmle/python/Function.qll b/python/ql/lib/semmle/python/Function.qll index 8566220b5b7..c3d5f7c801e 100644 --- a/python/ql/lib/semmle/python/Function.qll +++ b/python/ql/lib/semmle/python/Function.qll @@ -178,9 +178,7 @@ class FunctionDef extends Assign { override string toString() { result = "FunctionDef" } /** Gets the function for this statement */ - Function getDefinedFunction() { - result = f.getInnerScope() // XXX: This behaves very differently. But from inspecting the results of the previous version, that had every function in the same scope as the result. - } + Function getDefinedFunction() { result = f.getInnerScope() } override Stmt getLastStatement() { result = this.getDefinedFunction().getLastStatement() } }