1
0
forked from VimPlug/jedi
This commit is contained in:
David Halter
2012-07-30 01:00:48 +02:00
parent 0a3a167561
commit eb7e877fd9
4 changed files with 13 additions and 12 deletions

View File

@@ -913,7 +913,7 @@ class Name(Simple):
return self.get_code()
def __eq__(self, other):
return self.names == other.names and self.start_pos == other.end_pos
return self.names == other.names and self.start_pos == other.end_pos
def __ne__(self, other):
return not self.__eq__(other)
@@ -985,7 +985,6 @@ class PyFuzzyParser(object):
else:
self.user_stmt = simple
def _parsedotname(self, pre_used_token=None):
"""
The dot name parser parses a name, variable or function and returns
@@ -1484,8 +1483,8 @@ class PyFuzzyParser(object):
# (This is a rather unlikely error message, for normal code,
# tokenize seems to be pretty tolerant)
self._line_of_tokenize_restart = self.start_pos[0] + 1
self._tokenize_start_pos = (0,0)
self._tokenize_end_pos = (0,0)
self._tokenize_start_pos = (0, 0)
self._tokenize_end_pos = (0, 0)
debug.warning('indentation error on line %s, ignoring it' %
(self.start_pos[0]))
self.gen = tokenize.generate_tokens(buf.readline)