diff options
author | Marcus Müller <marcus.mueller@student.kit.edu> | 2013-05-31 18:24:17 +0200 |
---|---|---|
committer | Marcus Müller <marcus.mueller@student.kit.edu> | 2013-05-31 18:24:17 +0200 |
commit | d74fc29cb7e97c02364bf9b68ee7a807484b770f (patch) | |
tree | e203b500e6d4ab359448999a86e81edc1fbe5f89 /gr-utils/python | |
parent | 3d5fdac9cc58b9dd52594ec34f587a37ab07b50d (diff) |
added utf8 encoding line to python templates
python breaks if it encounters special characters
in files without specified encoding.
Which is especially funny if you've got umlauts
in your name.
Diffstat (limited to 'gr-utils/python')
-rw-r--r-- | gr-utils/python/modtool/templates.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py index 3ce31cd6d8..227a8d3971 100644 --- a/gr-utils/python/modtool/templates.py +++ b/gr-utils/python/modtool/templates.py @@ -303,6 +303,7 @@ namespace gr { # Python block Templates['block_python'] = '''\#!/usr/bin/env python +# -*- coding: utf-8 -*- ${str_to_python_comment($license)} # #if $blocktype == 'noblock' @@ -457,6 +458,7 @@ namespace gr { # Python QA code Templates['qa_python'] = '''\#!/usr/bin/env python +# -*- coding: utf-8 -*- ${str_to_python_comment($license)} # |