Skip to content

Commit

Permalink
mark the python examples as having utf-8 encoding
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
evgeni committed Oct 8, 2016
1 parent fd5cf68 commit 59e8ed7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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
#
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down

0 comments on commit 59e8ed7

Please sign in to comment.