Make some faked things private

This commit is contained in:
Dave Halter
2017-11-22 19:22:18 +01:00
parent 37533c5d51
commit 4dc2ad281d
2 changed files with 6 additions and 5 deletions

View File

@@ -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()

View File

@@ -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: