Author steve.dower
Recipients gregory.p.smith, lukasz.langa, rikard.nordgren, steve.dower
Date 2021-05-06.18:59:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620327554.83.0.745556950959.issue44061@roundup.psfhosted.org>
In-reply-to
Content
Looks like it was always getting lucky in the past, as sys.path requires strings, and the "path" argument here is an alternative to it. The cache was definitely not working as intended.

So while it's not clearly documented anywhere (other than the related pkgutil.extend_path() method saying it'll ignore non-str paths), we do need to only be passing str into _importlib_bootstrap.

I can't do the pkgutil updates right now, but I think it's just get_importer than needs an os.fsdecode() call around its argument. Maybe some others in the same module. And add tests :)
History
Date User Action Args
2021-05-06 18:59:14steve.dowersetrecipients: + steve.dower, gregory.p.smith, lukasz.langa, rikard.nordgren
2021-05-06 18:59:14steve.dowersetmessageid: <1620327554.83.0.745556950959.issue44061@roundup.psfhosted.org>
2021-05-06 18:59:14steve.dowerlinkissue44061 messages
2021-05-06 18:59:14steve.dowercreate