From 6bf64b2ed7d11a01fecbc01ca3fc4988a0ad9583 Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 30 Apr 2013 21:41:46 +0430 Subject: [PATCH] fixed speed problems --- jedi/fast_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jedi/fast_parser.py b/jedi/fast_parser.py index 81740a59..e37ee9a1 100644 --- a/jedi/fast_parser.py +++ b/jedi/fast_parser.py @@ -340,7 +340,7 @@ class FastParser(use_metaclass(CachedFastParser)): # base scope, subscopes would save all the other contents new = empty_parser() if self.current_node is None: - self.current_node = ParserNode(new, code) + self.current_node = ParserNode(new, '') else: self.current_node.save_contents(new) self.parsers.append(new) @@ -348,13 +348,13 @@ class FastParser(use_metaclass(CachedFastParser)): if is_first: if self.current_node is None: - self.current_node = ParserNode(p, code) + self.current_node = ParserNode(p, code_part) else: self.current_node.save_contents(p) else: if node is None: self.current_node = \ - self.current_node.add_parser(p, code) + self.current_node.add_parser(p, code_part) else: self.current_node = self.current_node.add_node(node) self.parsers.append(p)