1
0
forked from VimPlug/jedi

rename name_with_signs to name_with_symbols

This commit is contained in:
David Halter
2013-08-15 14:04:08 +04:30
parent d6e9732064
commit c4e07cae11
2 changed files with 4 additions and 4 deletions

View File

@@ -364,14 +364,14 @@ class Completion(BaseDefinition):
return unicode(self._name.names[-1])
@property
def name_with_signs(self):
def name_with_symbols(self):
"""
Similar to :meth:`Completion.name`, but like :meth:`Completion.name`
returns also the signs, for example::
returns also the symbols, for example::
list()
would return ``.append`` and others.
would return ``.append`` and others (which means it adds a dot).
"""
return self._complete(False)

View File

@@ -93,7 +93,7 @@ def setup_readline(namespace=__main__.__dict__):
self.matches.append(path + dot + name)
else:
completions = interpreter.completions()
self.matches = [path + dot + c.name_with_signs
self.matches = [path + dot + c.name_with_symbols
for c in completions]
try:
return self.matches[state]