1
0
forked from VimPlug/jedi

fix the remaining refactoring problems

This commit is contained in:
David Halter
2013-02-05 16:38:23 +01:00
parent bc08ea9630
commit b3a0249475
3 changed files with 6 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
import re
import evaluate
import parsing
import parsing_representation as pr
DOCSTRING_PARAM_PATTERNS = [
@@ -34,7 +35,7 @@ def follow_param(param):
param_str)
user_position = (2, 0)
p = pr.Parser(param_str, None, user_position,
p = parsing.Parser(param_str, None, user_position,
no_docstr=True)
return evaluate.follow_statement(p.user_stmt)
return []
@@ -98,7 +99,7 @@ def find_return_types(func):
if not type_str:
return []
p = pr.Parser(type_str, None, (1, 0), no_docstr=True)
p = parsing.Parser(type_str, None, (1, 0), no_docstr=True)
p.user_stmt.parent = func
return list(evaluate.follow_statement(p.user_stmt))