aboutsummaryrefslogtreecommitdiff
path: root/yasnippet/python-mode
diff options
context:
space:
mode:
Diffstat (limited to 'yasnippet/python-mode')
-rw-r--r--yasnippet/python-mode/namemain6
-rw-r--r--yasnippet/python-mode/pclass8
2 files changed, 14 insertions, 0 deletions
diff --git a/yasnippet/python-mode/namemain b/yasnippet/python-mode/namemain
new file mode 100644
index 0000000..870114c
--- /dev/null
+++ b/yasnippet/python-mode/namemain
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: namemain
+# key: namemain
+# --
+if __name__ == "__main__":
+ $0 \ No newline at end of file
diff --git a/yasnippet/python-mode/pclass b/yasnippet/python-mode/pclass
new file mode 100644
index 0000000..1e6b8f7
--- /dev/null
+++ b/yasnippet/python-mode/pclass
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: pclass
+# key: pclass
+# --
+
+class $1:
+ def __init__(self$2):
+ $0