1
0
forked from VimPlug/jedi

pep cleanups

This commit is contained in:
Dave Halter
2013-12-24 11:47:28 +01:00
parent 5b33de991b
commit e4013cee77
4 changed files with 11 additions and 16 deletions

View File

@@ -160,7 +160,7 @@ class Script(object):
and n.lower().startswith(like.lower()) \
or n.startswith(like):
if not evaluate.filter_private_variable(s,
user_stmt or self._parser.user_scope, n):
user_stmt or self._parser.user_scope, n):
new = api_classes.Completion(c, needs_dot, len(like), s)
k = (new.name, new.complete) # key
if k in comp_dct and settings.no_completion_duplicates:
@@ -552,7 +552,6 @@ class Script(object):
cur_name_part = name_part
kill_count += 1
context = self._module.get_context()
just_from = next(context) == 'from'
@@ -658,8 +657,6 @@ class Interpreter(Script):
return completions
def defined_names(source, path=None, encoding='utf-8'):
"""
Get all definitions in `source` sorted by its position.