Jason R. Coombs <jar...@jaraco.com> added the comment: In the backport, I found that `mod_spec.parent` seemed to be the right thing (in at least a few cases). Might that be preferable to `module_name.rpartition('.')[0]`?
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32691> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com