Fix: stdlib issues with the latest CompiledObject changes.

This commit is contained in:
Dave Halter committed 2015-12-10 00:02:06 +01:00
1 parent c9a5caa96e
commit 86037222b4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -505,7 +505,7 @@ def get_special_object(evaluator, identifier):
def compiled_objects_cache(func):
def wrapper(evaluator, obj, parent=None, module=None):
# Do a very cheap form of caching here.
if parent is None and obj != _builtins:
if parent is None and not inspect.ismodule(obj):
parent = create(evaluator, _builtins)
key = id(obj), id(parent), id(module)