pep8 cleanup
This commit is contained in:
@@ -110,7 +110,7 @@ def complete_indices(word, namespace, obj=None, base=None):
|
||||
# dictionary type
|
||||
matches = ['%s[%r]' % (base, key) for key in sorted(obj.keys())]
|
||||
else:
|
||||
# list type,
|
||||
# list type
|
||||
matches = ['%s[%d]' % (base, idx) for idx in range(obj_len)]
|
||||
if word != base:
|
||||
matches = [match for match in matches if match.startswith(word)]
|
||||
|
||||
Reference in New Issue
Block a user