mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
We talked about how it's annoying that we in 4 places have the same fix `isPreferredModuleForName(<module>.getFile(), <name> + ["", ".__init__"])` , and that it would be nice to have a simple wrapper predicate that ensures we never forget to do the `+ ["", ".__init__"]` dance... I had trouble coming up with a name for this (ironically), but I think `getModuleFromName` is good enough.