generate_vulkan_layers_json.py: Fix Python 3 compatibility
[platform/upstream/Vulkan-Tools.git] / build-gn / generate_vulkan_layers_json.py
index 2999cd8..2e2b3d5 100755 (executable)
@@ -79,7 +79,7 @@ def main():
             data[data_key]['library_path'] = prev_name
 
         target_fname = os.path.join(target_dir, os.path.basename(json_fname))
-        with open(target_fname, 'wb') as outfile:
+        with open(target_fname, 'w') as outfile:
             json.dump(data, outfile)
 
     # Get the Vulkan version from the vulkan_core.h file