aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2014-08-12 09:16:52 +0900
committermattn <mattn.jp@gmail.com>2014-08-12 09:16:52 +0900
commit454737b20151ff283d4c4610c105d0e389e2e07b (patch)
tree61bbdee5e1cf838131a16d20b028296af2e59dfa
parent852422ef24e908397c356e5a833c72ff2b3a00de (diff)
parentb4576483d0fdf5c7f13a0114a1c81fa55bd1eb2f (diff)
downloadvim-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.py1
-rw-r--r--template/python/base-main.py1
-rw-r--r--template/python/base-test.py1
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