1
0
forked from VimPlug/jedi

fixed mutability problem

This commit is contained in:
David Halter
2012-03-24 03:45:12 +01:00
parent c13361dd1d
commit 36f5cccfe9
4 changed files with 206 additions and 96 deletions

View File

@@ -177,7 +177,7 @@ def complete(source, row, column, file_callback=None):
column = 17
row = 140
row = 144
row = 148
column = 200
f = File(source=source, row=row)
scope = f.parser.user_scope
@@ -197,11 +197,11 @@ def complete(source, row, column, file_callback=None):
dbg(e)
result = []
if path:
if path and path[0]:
# just parse one statement
r = parsing.PyFuzzyParser(".".join(path))
print 'p', r.top.get_code().replace('\n', r'\n'), r.top.statements[0]
evaluate.follow_statement(scope, r.top.statements[0])
evaluate.follow_statement(r.top.statements[0], scope)
exit()
name = path.pop()
@@ -237,7 +237,7 @@ def set_debug_function(func_cb):
"""
global debug_function
debug_function = func_cb
parsing.debug_function = func_cb
#parsing.debug_function = func_cb
evaluate.debug_function = func_cb