mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Make some faked things private
This commit is contained in:
@@ -106,7 +106,8 @@ class Evaluator(object):
|
||||
if compiled_sub_process is None:
|
||||
self.compiled_subprocess = EvaluatorSameProcess(self)
|
||||
else:
|
||||
self.compiled_subprocess = EvaluatorSubprocess(self, compiled_sub_process)
|
||||
self.compiled_subprocess = EvaluatorSameProcess(self)
|
||||
#self.compiled_subprocess = EvaluatorSubprocess(self, compiled_sub_process)
|
||||
|
||||
|
||||
self.reset_recursion_limitations()
|
||||
|
||||
@@ -80,7 +80,7 @@ def _search_scope(scope, obj_name):
|
||||
return s
|
||||
|
||||
|
||||
def get_module(obj):
|
||||
def _get_module(obj):
|
||||
if inspect.ismodule(obj):
|
||||
return obj
|
||||
try:
|
||||
@@ -108,7 +108,7 @@ def get_module(obj):
|
||||
def _faked(grammar, module, obj, name):
|
||||
# Crazy underscore actions to try to escape all the internal madness.
|
||||
if module is None:
|
||||
module = get_module(obj)
|
||||
module = _get_module(obj)
|
||||
|
||||
faked_mod = _load_faked_module(grammar, module)
|
||||
if faked_mod is None:
|
||||
@@ -145,7 +145,7 @@ def _faked(grammar, module, obj, name):
|
||||
return None, None
|
||||
|
||||
|
||||
def memoize_faked(obj):
|
||||
def _memoize_faked(obj):
|
||||
"""
|
||||
A typical memoize function that ignores issues with non hashable results.
|
||||
"""
|
||||
@@ -167,7 +167,7 @@ def memoize_faked(obj):
|
||||
return memoizer
|
||||
|
||||
|
||||
@memoize_faked
|
||||
@_memoize_faked
|
||||
def _get_faked(grammar, module, obj, name=None):
|
||||
result, fake_module = _faked(grammar, module, obj, name)
|
||||
if result is None:
|
||||
|
||||
Reference in New Issue
Block a user