Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/ensurepip/__init__.py
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
  • Loading branch information
wimglenn and jaraco authored Jun 7, 2021
commit 039e3152ffb07b10558a54be55bd4237f9b8d59f
3 changes: 1 addition & 2 deletions Lib/ensurepip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
# Use bundled wheel package
wheel_name = package.wheel_name
wheel_path = resources.files("ensurepip") / "_bundled" / wheel_name
with wheel_path.open("rb") as fp:
whl = fp.read()
whl = wheel_path.read_bytes()
else:
# Use the wheel package directory
with open(package.wheel_path, "rb") as fp:
Expand Down