Bug in _package_info.py compile #491
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
On version 1.24.0, in _package_info.py compile() methode line 36 there is :
module_name = module.__name__ if hasattr(module, __name__) else ""
I think it should be :
module_name = module.__name__ if hasattr(module, "__name__") else ""
Furthermore, if we are dealing with packages, I think the whole code should be :
The text was updated successfully, but these errors were encountered: