diff options
author | petitviolet <violethero0820@gmail.com> | 2014-03-04 10:18:00 +0900 |
---|---|---|
committer | petitviolet <violethero0820@gmail.com> | 2014-03-04 10:21:39 +0900 |
commit | 66dea09d78278ecb8363bdd26df045f9d0f200d5 (patch) | |
tree | f7d048561c1c62c4de5beb56b0d5af8abc87731d /template/python/snip-class.py | |
parent | 4c5bc730fce163ecdcd4c2bf39526461605a9694 (diff) | |
download | vim-sonictemplate-66dea09d78278ecb8363bdd26df045f9d0f200d5.tar.gz vim-sonictemplate-66dea09d78278ecb8363bdd26df045f9d0f200d5.tar.bz2 vim-sonictemplate-66dea09d78278ecb8363bdd26df045f9d0f200d5.zip |
modified python template
add __repr__ function to *-class.py
add encoding declaration to base-*.py
remove vim-encoding declaration from base-main.py
Diffstat (limited to 'template/python/snip-class.py')
-rw-r--r-- | template/python/snip-class.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/template/python/snip-class.py b/template/python/snip-class.py index c8ff23c..636204d 100644 --- a/template/python/snip-class.py +++ b/template/python/snip-class.py @@ -1,3 +1,5 @@ -class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}: - def __init__(self): - {{_cursor_}} +class {{_expr_:substitute('{{_input_:name}}(object)', '\w\+', '\u\0', '')}}: + def __init__(self{{_cursor_}}): + + def __repr__(self): + return |