diff options
-rw-r--r-- | template/python/base-class.py | 4 | ||||
-rw-r--r-- | template/python/base-main.py | 2 | ||||
-rw-r--r-- | template/python/base-test.py | 1 | ||||
-rw-r--r-- | template/python/snip-class.py | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/template/python/base-class.py b/template/python/base-class.py index 0aa20ea..ba7c7d8 100644 --- a/template/python/base-class.py +++ b/template/python/base-class.py @@ -1,8 +1,8 @@ -# -*- encoding: utf-8 -*- """ {{_name_}} """ -class {{_expr_:substitute('{{_input_:name}}(object)', '\w\+', '\u\0', '')}}: + +class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(object): def __init__(self{{_cursor_}}): def __repr__(self): diff --git a/template/python/base-main.py b/template/python/base-main.py index 5f8bd8d..e40b7ba 100644 --- a/template/python/base-main.py +++ b/template/python/base-main.py @@ -1,3 +1,5 @@ +# vim: fileencoding=utf-8 + def main(): {{_cursor_}} diff --git a/template/python/base-test.py b/template/python/base-test.py index 089a0cb..9f00533 100644 --- a/template/python/base-test.py +++ b/template/python/base-test.py @@ -1,4 +1,3 @@ -# -*- encoding: utf-8 -*- """ {{_name_}} """ diff --git a/template/python/snip-class.py b/template/python/snip-class.py index 636204d..aee2e08 100644 --- a/template/python/snip-class.py +++ b/template/python/snip-class.py @@ -1,4 +1,4 @@ -class {{_expr_:substitute('{{_input_:name}}(object)', '\w\+', '\u\0', '')}}: +class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(object): def __init__(self{{_cursor_}}): def __repr__(self): |