removed another extra print, and fixed some comments

This commit is contained in:
rygwdn@gmail.com 2010-05-16 21:38:55 -03:00
parent c72307c19d
commit 67d1b65aa7
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,6 @@ class ${1:MyClass}(${2:object}):
def __init__(self$4): def __init__(self$4):
""" ${5:TODO: Fill me in}`!p """ ${5:TODO: Fill me in}`!p
res = "" res = ""
print "test"
snip.reset_indent() snip.reset_indent()
snip.shift(2) snip.shift(2)

View File

@ -783,17 +783,18 @@ class PythonCode(TextObject):
code = code.replace("\\`", "`") code = code.replace("\\`", "`")
# Add Some convenience to the code # Find our containing snippet for snippet local data
snippet = parent snippet = parent
while snippet and not isinstance(snippet, SnippetInstance): while snippet and not isinstance(snippet, SnippetInstance):
try: try:
snippet = snippet._parent snippet = snippet._parent
except AttributeError: except AttributeError:
snippet = None snippet = None
self._code = "import re, os, vim, string, random\n" + code
self._snip = SnippetUtil(indent, snippet) 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, "") TextObject.__init__(self, parent, start, end, "")