From f81cc7a522b443231ea5b97de10778ae73e9fe58 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Sun, 25 Nov 2012 08:14:03 +0100 Subject: [PATCH] Fixed pythons rwprop snippet. --- UltiSnips/python.snippets | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 462bf20..a770d2a 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -368,7 +368,12 @@ endsnippet snippet rwprop "Read write property" b def ${1:property}(): - ${2/.+/(?0:""")/}${2:The RW property $1}${2/.+/(?0:"""\n )/}def fget(self): + ${2/.+/(?0:""")/}${2:The RW property $1}`!p if t[2]: + snip.rv += '"""' + snip >> 1 + snip += "" +else: + snip.rv = ""`def fget(self): return self._$1$0 def fset(self, value): self._$1 = value