Commit a3e03e10 by Dirk Pranke Committed by Nicolas Capens

Fix a Python3-compatibility issue for write_icd_json.py.

I stumbled across this while bringing up the Chromium build under Python3. The change should allow the code to work under both 2 and 3 now. Bug: chromium:1112479 Change-Id: I5ae0cafdd453a12b53a0fa5392ad46cba60f4ed4 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/47308Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 74cc8ea2
......@@ -24,7 +24,7 @@ def run():
args = parser.parse_args()
with open(args.input) as infile:
with open(args.output, 'wb') as outfile:
with open(args.output, 'w') as outfile:
data = json.load(infile)
data['ICD']['library_path'] = args.library_path
json.dump(data, outfile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment