From 26a0307b8fb0f9b2f6fc14e29e45c5d9a176e479 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 21 Apr 2022 12:00:45 +0200 Subject: [PATCH] clients/tests: declare encoding of utf-8 python source "test-client.py" The source file now contains UTF-8 (non ASCII) characters. Python2 doesn't like that: "./src/tests/client/test-client.sh" "." "." "/usr/bin/python" File "/builddir/build/BUILD/NetworkManager-1.39.2/src/tests/client/test-client.py", line 1730 SyntaxError: Non-ASCII character '\xe2' in file /builddir/build/BUILD/NetworkManager-1.39.2/src/tests/client/test-client.py on line 1730, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details --- src/tests/client/test-client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py index 70516f913e..42c2a9dc32 100755 --- a/src/tests/client/test-client.py +++ b/src/tests/client/test-client.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# coding: utf-8 from __future__ import print_function