python: drop explicit output_encoding='utf-8' in mako templates

Python 3 handles unicode strings by default, so we can drop all that.

Suggested-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674>
This commit is contained in:
Eric Engestrom
2021-08-07 11:36:38 +01:00
committed by Marge Bot
parent 3f99ff8a0e
commit 4d9acfa533
12 changed files with 31 additions and 34 deletions
+2 -2
View File
@@ -223,6 +223,6 @@ static const struct driconf_device *driconf[] = {
xml = sys.argv[1]
dst = sys.argv[2]
with open(dst, 'wb') as f:
f.write(Template(template, output_encoding='utf-8').render(driconf=DriConf(xml)))
with open(dst, 'w') as f:
f.write(Template(template).render(driconf=DriConf(xml)))