1
0
forked from VimPlug/jedi

hopefully fixes a long-lasting problem with weakrefs

This commit is contained in:
David Halter
2012-12-05 00:34:18 +01:00
parent dd56b2dcbf
commit 92dea00f0d
3 changed files with 3 additions and 5 deletions

View File

@@ -27,7 +27,6 @@ from __future__ import with_statement
__all__ = ['Script', 'NotFoundError', 'set_debug_function']
import re
import weakref
import parsing
import dynamic
@@ -196,7 +195,7 @@ class Script(object):
except IndexError:
raise NotFoundError()
stmt.start_pos = self.pos
stmt.parent = weakref.ref(self.parser.user_scope)
stmt.parent = lambda: self.parser.user_scope
return stmt
def get_definition(self):