mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Rename an execute function that is private
This commit is contained in:
@@ -85,7 +85,7 @@ from jedi.evaluate.syntax_tree import eval_trailer, eval_expr_stmt, \
|
|||||||
eval_node, check_tuple_assignments
|
eval_node, check_tuple_assignments
|
||||||
|
|
||||||
|
|
||||||
def execute(context, arguments):
|
def _execute(context, arguments):
|
||||||
try:
|
try:
|
||||||
func = context.py__call__
|
func = context.py__call__
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
@@ -124,7 +124,7 @@ class Evaluator(object):
|
|||||||
# Plugin API
|
# Plugin API
|
||||||
from jedi.plugins import plugin_manager
|
from jedi.plugins import plugin_manager
|
||||||
plugin_callbacks = plugin_manager.get_callbacks(self)
|
plugin_callbacks = plugin_manager.get_callbacks(self)
|
||||||
self.execute = plugin_callbacks.decorate('execute', callback=execute)
|
self.execute = plugin_callbacks.decorate('execute', callback=_execute)
|
||||||
self.import_module = plugin_callbacks.decorate(
|
self.import_module = plugin_callbacks.decorate(
|
||||||
'import_module',
|
'import_module',
|
||||||
callback=imports.import_module
|
callback=imports.import_module
|
||||||
|
|||||||
Reference in New Issue
Block a user