diff options
author | Thomas Haller <thaller@redhat.com> | 2022-04-21 12:00:45 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-04-21 12:01:20 +0200 |
commit | 26a0307b8fb0f9b2f6fc14e29e45c5d9a176e479 (patch) | |
tree | 01f1896acc601c24e0088c90ea89601be597ff6e | |
parent | a8284b1d3b967789066c76c39660a91565fb7833 (diff) | |
download | NetworkManager-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-x | src/tests/client/test-client.py | 1 |
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 |