From 47ec0c6d2adb08c9cf4ee83e500234be83961db8 Mon Sep 17 00:00:00 2001 From: JuanPablo Date: Wed, 3 Aug 2011 10:59:11 -0400 Subject: [PATCH] python def without fold --- snippets/python.snippets | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/snippets/python.snippets b/snippets/python.snippets index 6711795..93de9a0 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -32,19 +32,16 @@ snippet cl ${6} # New Function snippet def - def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):#{{{ + def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): """${3:docstring for $1}""" ${4:pass} - #}}} snippet deff - def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):#{{{ + def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): ${3} - #}}} # New Method snippet defs - def ${1:mname}(self, ${2:arg}):#{{{ + def ${1:mname}(self, ${2:arg}): ${3:pass} - #}}} # New Property snippet property def ${1:foo}():