Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 305bfab

Browse files
committed
Python: Fix imports/2
1 parent 07ffa9f commit 305bfab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/src/semmle/python/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ module API {
273273
exists(ImportExprNode iexpr |
274274
imp.asCfgNode() = iexpr and
275275
not iexpr.getNode().isRelative() and
276-
name = iexpr.getNode().getName()
276+
name = iexpr.getNode().getImportedModuleName()
277277
)
278278
}
279279

0 commit comments

Comments
 (0)