1
0
forked from VimPlug/jedi

Remove Whitespace class and replace it with Newline and Endmarker.

This commit is contained in:
Dave Halter
2016-07-24 17:16:36 +02:00
parent 7f2f66f011
commit ff47fab62a
5 changed files with 17 additions and 10 deletions

View File

@@ -53,8 +53,8 @@ def _get_code_for_stack(code_lines, module, position):
leaf = leaf.get_previous_leaf()
except IndexError:
return u('') # At the beginning of the file.
is_after_newline = leaf.type == 'whitespace'
while leaf.type == 'whitespace':
is_after_newline = leaf.type == 'newline'
while leaf.type == 'newline':
try:
leaf = leaf.get_previous_leaf()
except IndexError: