1
0
forked from VimPlug/jedi

fix comment problem (code shouldn't be parsed multiple times)

This commit is contained in:
David Halter
2012-12-16 02:41:04 +01:00
parent 21b49a17ff
commit bcdf273c21
3 changed files with 24 additions and 14 deletions
+5 -1
View File
@@ -1178,7 +1178,11 @@ class PyFuzzyParser(object):
self.gen = common.NoErrorTokenizer(buf.readline, line_offset,
stop_on_scope)
self.top_module = top_module or self.module
self.parse()
try:
self.parse()
except StopIteration:
# sometimes StopIteration isn't catched. Just ignore it.
pass
# clean up unused decorators
for d in self._decorators: