From b4576483d0fdf5c7f13a0114a1c81fa55bd1eb2f Mon Sep 17 00:00:00 2001 From: kenshi kamata Date: Mon, 11 Aug 2014 23:31:42 +0900 Subject: fix template for flake8 --- template/python/base-class.py | 1 + template/python/base-main.py | 1 + template/python/base-test.py | 1 + 3 files changed, 3 insertions(+) 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 -- cgit v1.2.3-54-g00ecf