mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Minor fixes
This commit is contained in:
12
sith.py
12
sith.py
@@ -144,16 +144,7 @@ class TestCase(object):
|
|||||||
|
|
||||||
def show_operation(self):
|
def show_operation(self):
|
||||||
print("%s:\n" % self.operation.capitalize())
|
print("%s:\n" % self.operation.capitalize())
|
||||||
if self.operation == 'completions':
|
getattr(self, 'show_' + self.operation)()
|
||||||
self.show_completions()
|
|
||||||
elif self.operation == 'goto_assignments':
|
|
||||||
self.show_goto_assignments()
|
|
||||||
elif self.operation == 'goto_definitions':
|
|
||||||
self.show_goto_definitions()
|
|
||||||
elif self.operation == 'usages':
|
|
||||||
self.show_usages()
|
|
||||||
elif self.operation == 'call_signatures':
|
|
||||||
self.show_call_signatures()
|
|
||||||
|
|
||||||
def show_completions(self):
|
def show_completions(self):
|
||||||
for completion in self.completions:
|
for completion in self.completions:
|
||||||
@@ -175,7 +166,6 @@ class TestCase(object):
|
|||||||
print(completion)
|
print(completion)
|
||||||
# Can't print the location here because we don't have the module path
|
# Can't print the location here because we don't have the module path
|
||||||
|
|
||||||
|
|
||||||
def show_goto_definitions(self):
|
def show_goto_definitions(self):
|
||||||
for completion in self.completions:
|
for completion in self.completions:
|
||||||
print(completion.desc_with_module)
|
print(completion.desc_with_module)
|
||||||
|
|||||||
Reference in New Issue
Block a user