summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-04-21 12:00:45 +0200
committerThomas Haller <thaller@redhat.com>2022-04-21 12:01:20 +0200
commit26a0307b8fb0f9b2f6fc14e29e45c5d9a176e479 (patch)
tree01f1896acc601c24e0088c90ea89601be597ff6e
parenta8284b1d3b967789066c76c39660a91565fb7833 (diff)
downloadNetworkManager-26a0307b8fb0f9b2f6fc14e29e45c5d9a176e479.tar.gz
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
-rwxr-xr-xsrc/tests/client/test-client.py1
1 files changed, 1 insertions, 0 deletions
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