diff options
author | Anh71me <iyumelive@gmail.com> | 2022-11-06 22:13:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 22:13:40 (GMT) |
commit | bd221c01ddcd2cad102133611fab3569a99680b0 (patch) | |
tree | e06471ce46accb19543364b49e918f70ef63c075 /Lib/importlib/_bootstrap.py | |
parent | 2db55e0c0069a928775fa819973a76f840c5ab5a (diff) | |
download | cpython-bd221c01ddcd2cad102133611fab3569a99680b0.zip cpython-bd221c01ddcd2cad102133611fab3569a99680b0.tar.gz cpython-bd221c01ddcd2cad102133611fab3569a99680b0.tar.bz2 |
gh-98139: enhance namespace package repr
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index e0110e7..1a1d5cf 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -580,7 +580,7 @@ def _module_repr_from_spec(spec): if spec.loader is None: return f'<module {name!r}>' else: - return f'<module {name!r} ({spec.loader!r})>' + return f'<module {name!r} (namespace) from {list(spec.loader._path)}>' else: if spec.has_location: return f'<module {name!r} from {spec.origin!r}>' |