From 92929192055808d613962d1cd1869fcb15219056 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 20 Jul 2009 21:25:01 +0200 Subject: [PATCH] Fixed rwprop now... maybe --- UltiSnips/python.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 7b142f2..61e6c08 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -47,13 +47,13 @@ def ${1:property}(self): endsnippet snippet rwprop "Read write property" b -def ${1:property}(self): +def ${1:property}(): ${2/.+/(?0:""")/}${2:The RW property $1}${2/.+/(?0:"""\n )/}def fget(self): return self._$1$0 def fset(self, value): self._$1 = value return locals() -$1 = property(**$1) +$1 = property(**$1()) endsnippet ##########################