From 38d5dc9400ec5320607bc7960ff513853add37a4 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Thu, 25 Feb 2021 21:55:31 +0100 Subject: [PATCH] driconf: avoid Non-ASCII character error in driconf_static.py MR to move to python3 in Android build gen rules is still pending The change is to avoid following building error: FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_util_intermediates/driconf_static.h /bin/bash -c "/usr/bin/python external/mesa/src/util/driconf_static.py external/mesa/src/util/00-mesa-defaults.conf > out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_util_intermediates/driconf_static.h" File "external/mesa/src/util/driconf_static.py", line 2 SyntaxError: Non-ASCII character '\xc2' in file external/mesa/src/util/driconf_static.py on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details Fixes: a6b0ceb ("driconf: Generate a static table when no xmlconfig") Acked-by: Rob Clark Tested-by: Marijn Suijten Part-of: --- src/util/driconf_static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/driconf_static.py b/src/util/driconf_static.py index febd7ed6067..5a4c6d49adf 100644 --- a/src/util/driconf_static.py +++ b/src/util/driconf_static.py @@ -1,5 +1,5 @@ # -# Copyright © 2021 Google, Inc. +# Copyright (C) 2021 Google, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"),