Skip to content

Commit 651afaf

Browse files
committed
Python: Hook up new implementation
Left as its own commit, as otherwise the diff would have been very confusing.
1 parent 0051ba1 commit 651afaf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/ImportResolution.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@ module ImportResolution {
164164
)
165165
}
166166

167-
Module getModule(DataFlow::CfgNode node) {
168-
exists(ModuleValue mv |
169-
node.getNode().pointsTo(mv) and
170-
result = mv.getScope()
171167
Module getModuleImportedByImportStar(ImportStar i) {
172168
isPreferredModuleForName(result.getFile(), i.getImportedModuleName())
173169
}
@@ -288,4 +284,5 @@ module ImportResolution {
288284
)
289285
}
290286

287+
Module getModule(DataFlow::CfgNode node) { node = getModuleReference(result) }
291288
}

0 commit comments

Comments
 (0)