diff options
| author | Raul Tambre <raul@tambre.ee> | 2020-03-05 21:07:10 +0200 |
|---|---|---|
| committer | jeremyk-lunarg <jeremyk@lunarg.com> | 2020-03-05 13:55:12 -0700 |
| commit | 94ed4c384c3425963b459a735045706e5f83f01b (patch) | |
| tree | 149acae058942cf35986bfde2aa22c890e495908 /scripts | |
| parent | 1af57a3ec4143286f12d32565dcd7ed44f01754c (diff) | |
| download | usermoji-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')
0 files changed, 0 insertions, 0 deletions
