зеркало из https://github.com/github/codeql.git
Merge pull request #14591 from RasmusWL/minor-stringpool-improvement
Python: Minor cleanup for string pool interaction
This commit is contained in:
Коммит
f6ae7523b5
|
@ -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`. */
|
||||
|
|
Загрузка…
Ссылка в новой задаче