gh-91181: restore support for bytes on sys.path in FileFinder#31897
gh-91181: restore support for bytes on sys.path in FileFinder#31897graingert wants to merge 7 commits into
Conversation
68b32ed to
6e553d8
Compare
6e553d8 to
c1ee86e
Compare
| path=new_path, | ||
| path_importer_cache=new_path_importer_cache, | ||
| path_hooks=new_path_hooks): | ||
| module = self.importlib.import_module('email') |
There was a problem hiding this comment.
this results in a BytesWarning: Comparison between bytes and string when bytes are added to the sys.path_importer_cache this is an existing problem for zipimport paths https://bugs.python.org/issue47026
There was a problem hiding this comment.
Looks like that's causing CI to fail as BytesWarning is considered an error. Looks like I need to go to python-dev and ask what people want to do.
There was a problem hiding this comment.
https://discuss.python.org/t/drop-supporting-bytes-on-sys-path/17225
I'm now suggesting dropping bytes support in sys.path. We will see how that conversation goes.
|
Closing in favor of #31934 |
Uh oh!
There was an error while loading. Please reload this page.