Skip to content

Commit f6ae752

Browse files
authored
Merge pull request #14591 from RasmusWL/minor-stringpool-improvement
Python: Minor cleanup for string pool interaction
2 parents 4e214e1 + be494b7 commit f6ae752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ module ImportResolution {
227227
*/
228228
pragma[inline]
229229
private Module getModuleFromName(string name) {
230-
isPreferredModuleForName(result.getFile(), name + ["", ".__init__"])
230+
isPreferredModuleForName(result.getFile(), [name, name + ".__init__"])
231231
}
232232

233233
/** Gets the module from which attributes are imported by `i`. */

0 commit comments

Comments
 (0)