1
0
forked from VimPlug/jedi

finally able to remove _get_defined_names_for_position

This commit is contained in:
Dave Halter
2014-07-03 11:53:51 +02:00
parent c1ed3bf38a
commit 1fd7acef7a
2 changed files with 4 additions and 27 deletions

View File

@@ -50,6 +50,10 @@ SCOPE_CONTENTS = 'asserts', 'subscopes', 'imports', 'statements', 'returns'
def filter_after_position(names, position):
"""
Removes all names after a certain position. If position is None, just
returns the names list.
"""
if position is None:
return names