Skip to content

Commit 3d7ee78

Browse files
committed
Drop os.fsencode from wheel path preprocessing
It was returning bytes on FreeBSD which was incorrectly injected into the Python code snippet executed in a subprocess and had a b-preffix.
1 parent f3a49c2 commit 3d7ee78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ensurepip/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
171171
if verbosity:
172172
args += ["-" + "v" * verbosity]
173173

174-
return _run_pip([*args, "pip"], [os.fsencode(tmp_wheel_path)])
174+
return _run_pip([*args, "pip"], [str(tmp_wheel_path)])
175175

176176

177177
def _uninstall_helper(*, verbosity=0):

0 commit comments

Comments
 (0)