forked from VimPlug/jedi
Small cleanup: Removed a few print statements.
This commit is contained in:
@@ -695,7 +695,6 @@ class CallSignature(Definition):
|
|||||||
|
|
||||||
for i, param in enumerate(self.params):
|
for i, param in enumerate(self.params):
|
||||||
# *args case
|
# *args case
|
||||||
print(param)
|
|
||||||
if param._name.get_definition().stars == 1:
|
if param._name.get_definition().stars == 1:
|
||||||
return i
|
return i
|
||||||
return None
|
return None
|
||||||
|
|||||||
@@ -223,13 +223,11 @@ def search_call_signatures(user_stmt, position):
|
|||||||
"""
|
"""
|
||||||
debug.speed('func_call start')
|
debug.speed('func_call start')
|
||||||
call, arr, index = None, None, 0
|
call, arr, index = None, None, 0
|
||||||
print(user_stmt)
|
|
||||||
if user_stmt is not None and isinstance(user_stmt, pr.ExprStmt):
|
if user_stmt is not None and isinstance(user_stmt, pr.ExprStmt):
|
||||||
# some parts will of the statement will be removed
|
# some parts will of the statement will be removed
|
||||||
user_stmt = deep_ast_copy(user_stmt)
|
user_stmt = deep_ast_copy(user_stmt)
|
||||||
|
|
||||||
return scan_node_for_call_signature(user_stmt, position) + (0,)
|
return scan_node_for_call_signature(user_stmt, position) + (0,)
|
||||||
print()
|
|
||||||
#arr, index, call = _call_signature_array_for_pos(user_stmt, position)
|
#arr, index, call = _call_signature_array_for_pos(user_stmt, position)
|
||||||
|
|
||||||
# Now remove the part after the call. Including the array from the
|
# Now remove the part after the call. Including the array from the
|
||||||
|
|||||||
@@ -171,7 +171,6 @@ class UserContext(object):
|
|||||||
if next_must_be_name:
|
if next_must_be_name:
|
||||||
if token.type == tokenize.NAME:
|
if token.type == tokenize.NAME:
|
||||||
call, _ = self._calc_path_until_cursor(start_pos=pos)
|
call, _ = self._calc_path_until_cursor(start_pos=pos)
|
||||||
print(call, index, key_name)
|
|
||||||
return call, index, key_name
|
return call, index, key_name
|
||||||
index = 0
|
index = 0
|
||||||
next_must_be_name = False
|
next_must_be_name = False
|
||||||
@@ -193,7 +192,7 @@ class UserContext(object):
|
|||||||
elif tok_str == ',':
|
elif tok_str == ',':
|
||||||
index += 1
|
index += 1
|
||||||
elif tok_str == '=':
|
elif tok_str == '=':
|
||||||
next_is_key=True
|
next_is_key = True
|
||||||
return None, 0, None
|
return None, 0, None
|
||||||
|
|
||||||
def get_context(self, yield_positions=False):
|
def get_context(self, yield_positions=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user