From: Evgeni Golov Date: Sat, 8 Oct 2016 16:29:30 +0000 (+0200) Subject: mark the python examples as having utf-8 encoding X-Git-Tag: lxc-2.1.0~306^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1224%2Fhead;p=thirdparty%2Flxc.git mark the python examples as having utf-8 encoding 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 --- diff --git a/src/python-lxc/examples/api_test.py b/src/python-lxc/examples/api_test.py index eab4f46e3..b8b5ee66c 100755 --- a/src/python-lxc/examples/api_test.py +++ b/src/python-lxc/examples/api_test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- # # api_test.py: Test/demo of the python3-lxc API # diff --git a/src/python-lxc/examples/pyconsole-vte.py b/src/python-lxc/examples/pyconsole-vte.py index 8e07f15e0..8a98359af 100755 --- a/src/python-lxc/examples/pyconsole-vte.py +++ b/src/python-lxc/examples/pyconsole-vte.py @@ -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 diff --git a/src/python-lxc/examples/pyconsole.py b/src/python-lxc/examples/pyconsole.py index a9238a034..2b0cd14ab 100755 --- a/src/python-lxc/examples/pyconsole.py +++ b/src/python-lxc/examples/pyconsole.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- # # pyconsole: Example program showing use of console functions # in the lxc python binding