]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
mark the python examples as having utf-8 encoding
authorEvgeni Golov <evgeni@debian.org>
Sat, 8 Oct 2016 16:29:30 +0000 (18:29 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 18 Nov 2016 01:31:44 +0000 (20:31 -0500)
this allows running them also under Python2, which otherwise
would choke on Stéphane's name and error out with
 SyntaxError: Non-ASCII character '\xc3' in file …

Signed-off-by: Evgeni Golov <evgeni@debian.org>
src/python-lxc/examples/api_test.py
src/python-lxc/examples/pyconsole-vte.py
src/python-lxc/examples/pyconsole.py

index eab4f46e3e29ad1874a1e5fb29df2f1c088ffe94..b8b5ee66cfe3d890a4716f24cd7e95f3b715326d 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 #
 # api_test.py: Test/demo of the python3-lxc API
 #
index 8e07f15e054abaa08705d6a378d6c6fccd187019..8a98359af40255b2d9a574565880bf70641ff72c 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 #
 # pyconsole-vte: Example program showing use of console functions
 #                in the lxc python binding
index a9238a0343e7b593836d04a33e71259fe429c07c..2b0cd14ab91b215a048d0734127589a6e27d9430 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 #
 # pyconsole: Example program showing use of console functions
 #            in the lxc python binding