Python: Modernise Statements/ queries

Almost. Left out a few things marked with TODO
This commit is contained in:
Rasmus Wriedt Larsen
2020-02-12 13:01:05 +01:00
parent 83d40f167b
commit 13568b7b9f
22 changed files with 129 additions and 110 deletions

View File

@@ -27,8 +27,8 @@ where
* reference cycle, and an explicit call to `del` helps break this cycle.
*/
not exists(FunctionObject ex |
ex.hasLongName("sys.exc_info") and
not exists(FunctionValue ex |
ex = Value::named("sys.exc_info") and
ex.getACall().getScope() = f
)
select del, "Unnecessary deletion of local variable $@ in function $@.", e.getLocation(),