1
0
forked from VimPlug/jedi

changed code for more readability that has been used because of weakrefs

This commit is contained in:
David Halter
2012-12-09 16:59:32 +01:00
parent d7727bdccd
commit 93aaff4cf4
2 changed files with 18 additions and 13 deletions
+2 -3
View File
@@ -461,12 +461,11 @@ class Builtin(object):
FunctionType = types.FunctionType
source = _generate_code(Container, depth=0)
parser = parsing.PyFuzzyParser(source, None)
# needed for caching (because of weakref)
module = self.magic_func_module = parser.module
module = parser.module
module.parent = self.scope
typ = evaluate.follow_path(iter(['FunctionType']), module, module)
self._magic_function_scope = s = typ.pop()
s = self._magic_function_scope = typ.pop()
return s