diff options
author | mattn <mattn.jp@gmail.com> | 2014-08-12 09:16:52 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2014-08-12 09:16:52 +0900 |
commit | 454737b20151ff283d4c4610c105d0e389e2e07b (patch) | |
tree | 61bbdee5e1cf838131a16d20b028296af2e59dfa | |
parent | 852422ef24e908397c356e5a833c72ff2b3a00de (diff) | |
parent | b4576483d0fdf5c7f13a0114a1c81fa55bd1eb2f (diff) | |
download | vim-sonictemplate-454737b20151ff283d4c4610c105d0e389e2e07b.tar.gz vim-sonictemplate-454737b20151ff283d4c4610c105d0e389e2e07b.tar.bz2 vim-sonictemplate-454737b20151ff283d4c4610c105d0e389e2e07b.zip |
Merge pull request #16 from knsh14/fix-python-template-for-flake8
fix template for flake8
-rw-r--r-- | template/python/base-class.py | 1 | ||||
-rw-r--r-- | template/python/base-main.py | 1 | ||||
-rw-r--r-- | template/python/base-test.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/template/python/base-class.py b/template/python/base-class.py index ba7c7d8..edc2c3d 100644 --- a/template/python/base-class.py +++ b/template/python/base-class.py @@ -2,6 +2,7 @@ {{_name_}} """ + class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(object): def __init__(self{{_cursor_}}): diff --git a/template/python/base-main.py b/template/python/base-main.py index e40b7ba..543dd86 100644 --- a/template/python/base-main.py +++ b/template/python/base-main.py @@ -1,5 +1,6 @@ # vim: fileencoding=utf-8 + def main(): {{_cursor_}} diff --git a/template/python/base-test.py b/template/python/base-test.py index 9f00533..5aecbe0 100644 --- a/template/python/base-test.py +++ b/template/python/base-test.py @@ -4,6 +4,7 @@ import unittest + class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(unittest.TestCase): def setUp(self): pass |