1
0
forked from VimPlug/jedi

Fix: stdlib issues with the latest CompiledObject changes.

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

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)

View File

@@ -464,7 +464,7 @@ class Class(use_metaclass(CachedMetaClass, Wrapper)):
return self._evaluator.find_types(self, name)
def py__class__(self, evaluator):
return compiled.create(evaluator, 'type')
return compiled.create(evaluator, type)
@property
def params(self):