[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-21 Thread Brett Cannon
Brett Cannon added the comment: bpo-47025 is a bigger discussion about bytes paths that probably needs to be resolved first before worrying about zipimport. -- ___ Python tracker ___

[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-21 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +bytes do not work on sys.path ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: This warning can be fixed by changing the following line: https://github.com/python/cpython/blob/9d1c4d69dbc800ac344565119337fcf490cdc800/Lib/importlib/_bootstrap_external.py#L1419 to: if not path and str(path) == '': and running `make regen-importl

[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-15 Thread Thomas Grainger
New submission from Thomas Grainger : importing from a bytes zipimport path on sys.path results in a BytesWarning: Comparison between bytes and string running the reproducer with `python -b` shows: python -b zipfile_demo.py :1345: BytesWarning: Comparison between bytes and string see also h