Merge pull request #14591 from RasmusWL/minor-stringpool-improvement

Python: Minor cleanup for string pool interaction
This commit is contained in:
Rasmus Wriedt Larsen
2023-11-06 13:13:27 +01:00
committed by GitHub

View File

@@ -227,7 +227,7 @@ module ImportResolution {
*/
pragma[inline]
private Module getModuleFromName(string name) {
isPreferredModuleForName(result.getFile(), name + ["", ".__init__"])
isPreferredModuleForName(result.getFile(), [name, name + ".__init__"])
}
/** Gets the module from which attributes are imported by `i`. */