aboutsummaryrefslogtreecommitdiff
path: root/scripts/check_code_format.sh
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-03-05 21:07:10 +0200
committerjeremyk-lunarg <jeremyk@lunarg.com>2020-03-05 13:55:12 -0700
commit94ed4c384c3425963b459a735045706e5f83f01b (patch)
tree149acae058942cf35986bfde2aa22c890e495908 /scripts/check_code_format.sh
parent1af57a3ec4143286f12d32565dcd7ed44f01754c (diff)
downloadusermoji-94ed4c384c3425963b459a735045706e5f83f01b.tar.xz
generate_vulkan_layers_json.py: Fix Python 3 compatibility
json.dump() returns a string. Writing strings to a file opened in binary mode doesn't work. Python 2 doesn't properly distringuish bytes and strings. Open in non-binary mode, so this code works on both. Traceback (most recent call last): File "../../third_party/angle/third_party/vulkan-tools/src/build-gn/generate_vulkan_layers_json.py", line 126, in <module> sys.exit(main()) File "../../third_party/angle/third_party/vulkan-tools/src/build-gn/generate_vulkan_layers_json.py", line 83, in main json.dump(data, outfile) File "C:\Program Files\Python38\lib\json\__init__.py", line 180, in dump fp.write(chunk) TypeError: a bytes-like object is required, not 'str' Chromium bug: https://crbug.com/941669
Diffstat (limited to 'scripts/check_code_format.sh')
0 files changed, 0 insertions, 0 deletions