mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-01 19:26:49 +08:00
remove unnecessary checks
This commit is contained in:
@@ -402,8 +402,6 @@ class Parser(object):
|
|||||||
typ, tok, start_pos, end_pos = next(self._gen)
|
typ, tok, start_pos, end_pos = next(self._gen)
|
||||||
# dedents shouldn't change positions
|
# dedents shouldn't change positions
|
||||||
self.start_pos = start_pos
|
self.start_pos = start_pos
|
||||||
if typ not in (tokenize.NEWLINE,):
|
|
||||||
self.start_pos, self.end_pos = start_pos, end_pos
|
|
||||||
|
|
||||||
self._current = typ, tok
|
self._current = typ, tok
|
||||||
return self._current
|
return self._current
|
||||||
|
|||||||
Reference in New Issue
Block a user