Python: Modernise import related queries

Except for Metrics/Dependencies/ExternalDependenciesSourceLinks.ql, since it is
rather tricky :D
This commit is contained in:
Rasmus Wriedt Larsen
2020-01-27 15:48:44 +01:00
parent 647b9cdcb0
commit d67577e66c
6 changed files with 23 additions and 18 deletions

View File

@@ -11,6 +11,6 @@
*/
import python
from ModuleObject m, int n
where n = count(ModuleObject imp | imp = m.getAnImportedModule())
select m.getModule(), n
from ModuleValue m, int n
where n = count(ModuleValue imp | imp = m.getAnImportedModule())
select m.getScope(), n

View File

@@ -11,6 +11,6 @@
*/
import python
from ModuleObject m, int n
where n = count(ModuleObject imp | imp = m.getAnImportedModule+() and imp != m)
select m.getModule(), n
from ModuleValue m, int n
where n = count(ModuleValue imp | imp = m.getAnImportedModule+() and imp != m)
select m.getScope(), n