diff options
author | Matěj Cepl <mcepl@redhat.com> | 2014-11-14 01:51:14 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2014-11-14 02:07:43 +0100 |
commit | 3271c8a1f781790b3536d51703df85befeaaac1c (patch) | |
tree | b29ab679b97e94eb65e3ea6002a528c63fcc2942 /generate_html_cs.py | |
parent | b609349a340a4c7ccbd3aef67f899a374b52f93e (diff) | |
download | hesla-3271c8a1f781790b3536d51703df85befeaaac1c.tar.gz |
Finally moved to proper TypeScript with inheritance.
Diffstat (limited to 'generate_html_cs.py')
-rwxr-xr-x | generate_html_cs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generate_html_cs.py b/generate_html_cs.py index 93a7d7c..52e2057 100755 --- a/generate_html_cs.py +++ b/generate_html_cs.py @@ -1,4 +1,6 @@ -#!/usr/bin/python3 +#!/usr/bin/python +# -*- coding: utf-8 -*- +from __future__ import absolute_import, print_function, unicode_literals import re import codecs import lxml.etree as et @@ -215,7 +217,7 @@ def parse_file(filename): article_keys = sorted(article_dict.keys()) for key in article_keys: article_list.append(article_dict[key]) - return template.render(articles=article_list) + return template.render(articles=article_list).encode('utf8') if __name__ == "__main__": |