-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-91181: restore support for bytes on sys.path in FileFinder #31897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Misc/NEWS.d/next/Library/2022-03-15-11-00-55.bpo-47025.oS8dt6.rst
Outdated
Show resolved
Hide resolved
Closing in favor of #31934 |
Uh oh!
There was an error while loading. Please reload this page.