From 49116db44f1ec847f599da63567e22c199e7bb92 Mon Sep 17 00:00:00 2001 From: MircoT Date: Mon, 14 Mar 2016 10:28:28 +0100 Subject: [PATCH 1/3] Fix valid json snippet file --- snippets/python.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/python.json b/snippets/python.json index b4b98fb241bd..d13e347169fa 100644 --- a/snippets/python.json +++ b/snippets/python.json @@ -12,7 +12,7 @@ "body": [ "if ${condition}:", "\t${1:suite}", - "else:" + "else:", "\t${2:suite}" ], "description": "Code snippet for an if statement with else" @@ -45,7 +45,7 @@ "prefix": "while/else", "body": [ "while ${expression}:", - "\t${1:suite}" + "\t${1:suite}", "else:", "\t${2:suite}" ], From a36602f2be42c1749536b997b7bc0793b0001b6f Mon Sep 17 00:00:00 2001 From: MircoT Date: Thu, 17 Mar 2016 10:45:59 +0100 Subject: [PATCH 2/3] Add abstract class method snippet --- snippets/python.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snippets/python.json b/snippets/python.json index d13e347169fa..ec543383c692 100644 --- a/snippets/python.json +++ b/snippets/python.json @@ -160,6 +160,14 @@ ], "description": "Code snippet for a static class method" }, + "def(abstract class method)": { + "prefix": "def(abstract class method)", + "body": [ + "def ${funcname}(self, ${parameter_list}):", + "\traise NotImplementedError" + ], + "description": "Code snippet for a static class method" + }, "class": { "prefix": "class", "body": [ From 26fb29d20791257386c1968c07ef373da720008b Mon Sep 17 00:00:00 2001 From: MircoT Date: Thu, 17 Mar 2016 10:46:52 +0100 Subject: [PATCH 3/3] Update description --- snippets/python.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/python.json b/snippets/python.json index ec543383c692..a2e9ebf11c26 100644 --- a/snippets/python.json +++ b/snippets/python.json @@ -166,7 +166,7 @@ "def ${funcname}(self, ${parameter_list}):", "\traise NotImplementedError" ], - "description": "Code snippet for a static class method" + "description": "Code snippet for an abstract class method" }, "class": { "prefix": "class",