Fixed pythons rwprop snippet.
This commit is contained in:
parent
54d917ddd4
commit
f81cc7a522
@ -368,7 +368,12 @@ endsnippet
|
|||||||
|
|
||||||
snippet rwprop "Read write property" b
|
snippet rwprop "Read write property" b
|
||||||
def ${1:property}():
|
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
|
return self._$1$0
|
||||||
def fset(self, value):
|
def fset(self, value):
|
||||||
self._$1 = value
|
self._$1 = value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user