Skip to content

Commit

Permalink
fix(pip): fix file opening encoding
Browse files Browse the repository at this point in the history
prevent python to automatically choosing the encoding which could lead to UnicodeDecodeError in some cases
  • Loading branch information
MrLixm authored Nov 1, 2023
1 parent 7d84662 commit 8e3e04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rez_pip/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def getPackages(
f"{output}",
)

with open(tmpFile, "r") as fd:
with open(tmpFile, "r", encoding="utf-8") as fd:
rawData = json.load(fd)
finally:
os.remove(tmpFile)
Expand Down

0 comments on commit 8e3e04c

Please sign in to comment.