mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +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:
|
if compiled_sub_process is None:
|
||||||
self.compiled_subprocess = EvaluatorSameProcess(self)
|
self.compiled_subprocess = EvaluatorSameProcess(self)
|
||||||
else:
|
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()
|
self.reset_recursion_limitations()
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ def _search_scope(scope, obj_name):
|
|||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
||||||
def get_module(obj):
|
def _get_module(obj):
|
||||||
if inspect.ismodule(obj):
|
if inspect.ismodule(obj):
|
||||||
return obj
|
return obj
|
||||||
try:
|
try:
|
||||||
@@ -108,7 +108,7 @@ def get_module(obj):
|
|||||||
def _faked(grammar, module, obj, name):
|
def _faked(grammar, module, obj, name):
|
||||||
# Crazy underscore actions to try to escape all the internal madness.
|
# Crazy underscore actions to try to escape all the internal madness.
|
||||||
if module is None:
|
if module is None:
|
||||||
module = get_module(obj)
|
module = _get_module(obj)
|
||||||
|
|
||||||
faked_mod = _load_faked_module(grammar, module)
|
faked_mod = _load_faked_module(grammar, module)
|
||||||
if faked_mod is None:
|
if faked_mod is None:
|
||||||
@@ -145,7 +145,7 @@ def _faked(grammar, module, obj, name):
|
|||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
|
|
||||||
def memoize_faked(obj):
|
def _memoize_faked(obj):
|
||||||
"""
|
"""
|
||||||
A typical memoize function that ignores issues with non hashable results.
|
A typical memoize function that ignores issues with non hashable results.
|
||||||
"""
|
"""
|
||||||
@@ -167,7 +167,7 @@ def memoize_faked(obj):
|
|||||||
return memoizer
|
return memoizer
|
||||||
|
|
||||||
|
|
||||||
@memoize_faked
|
@_memoize_faked
|
||||||
def _get_faked(grammar, module, obj, name=None):
|
def _get_faked(grammar, module, obj, name=None):
|
||||||
result, fake_module = _faked(grammar, module, obj, name)
|
result, fake_module = _faked(grammar, module, obj, name)
|
||||||
if result is None:
|
if result is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user