aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2014-03-05 12:59:05 +0900
committermattn <mattn.jp@gmail.com>2014-03-05 12:59:05 +0900
commitbd136e945c89844138d5f1f242102de74235bba7 (patch)
tree421d8925d55fe941ee66630a3d80013c77cbbe22
parent4c5bc730fce163ecdcd4c2bf39526461605a9694 (diff)
parent9dff39398139c258106247ddd6ef6c913b0a9eee (diff)
downloadvim-sonictemplate-bd136e945c89844138d5f1f242102de74235bba7.tar.gz
vim-sonictemplate-bd136e945c89844138d5f1f242102de74235bba7.tar.bz2
vim-sonictemplate-bd136e945c89844138d5f1f242102de74235bba7.zip
Merge pull request #14 from petitviolet/modify_python
Modify python
-rw-r--r--template/python/base-class.py8
-rw-r--r--template/python/snip-class.py8
2 files changed, 10 insertions, 6 deletions
diff --git a/template/python/base-class.py b/template/python/base-class.py
index 9ea3b27..ba7c7d8 100644
--- a/template/python/base-class.py
+++ b/template/python/base-class.py
@@ -2,6 +2,8 @@
{{_name_}}
"""
-class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}:
- def __init__(self):
- {{_cursor_}}
+class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(object):
+ def __init__(self{{_cursor_}}):
+
+ def __repr__(self):
+ return
diff --git a/template/python/snip-class.py b/template/python/snip-class.py
index c8ff23c..aee2e08 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}}', '\w\+', '\u\0', '')}}(object):
+ def __init__(self{{_cursor_}}):
+
+ def __repr__(self):
+ return