removed another extra print, and fixed some comments
This commit is contained in:
parent
c72307c19d
commit
67d1b65aa7
@ -25,7 +25,6 @@ class ${1:MyClass}(${2:object}):
|
||||
def __init__(self$4):
|
||||
""" ${5:TODO: Fill me in}`!p
|
||||
res = ""
|
||||
print "test"
|
||||
snip.reset_indent()
|
||||
snip.shift(2)
|
||||
|
||||
|
@ -783,17 +783,18 @@ class PythonCode(TextObject):
|
||||
|
||||
code = code.replace("\\`", "`")
|
||||
|
||||
# Add Some convenience to the code
|
||||
# Find our containing snippet for snippet local data
|
||||
snippet = parent
|
||||
while snippet and not isinstance(snippet, SnippetInstance):
|
||||
try:
|
||||
snippet = snippet._parent
|
||||
except AttributeError:
|
||||
snippet = None
|
||||
|
||||
self._code = "import re, os, vim, string, random\n" + code
|
||||
self._snip = SnippetUtil(indent, snippet)
|
||||
|
||||
# Add Some convenience to the code
|
||||
self._code = "import re, os, vim, string, random\n" + code
|
||||
|
||||
TextObject.__init__(self, parent, start, end, "")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user