Python: Fix imports/2

This commit is contained in:
Taus Brock-Nannestad
2021-02-04 16:46:22 +01:00
parent 07ffa9f1ae
commit 305bfaba2d

View File

@@ -273,7 +273,7 @@ module API {
exists(ImportExprNode iexpr |
imp.asCfgNode() = iexpr and
not iexpr.getNode().isRelative() and
name = iexpr.getNode().getName()
name = iexpr.getNode().getImportedModuleName()
)
}