mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-27 23:51:26 +08:00
removed a little ordering bug, which was just a problem with gotos
This commit is contained in:
@@ -194,10 +194,7 @@ def prepare_goto(source, row, column, source_path, is_like_search):
|
|||||||
path_tuple = ()
|
path_tuple = ()
|
||||||
raise NotFoundError(scope, path_tuple)
|
raise NotFoundError(scope, path_tuple)
|
||||||
else:
|
else:
|
||||||
if is_like_search:
|
stmt.line_nr = row
|
||||||
stmt.line_nr = row
|
|
||||||
else:
|
|
||||||
stmt.line_nr = row + 1
|
|
||||||
stmt.indent = column
|
stmt.indent = column
|
||||||
stmt.parent = scope
|
stmt.parent = scope
|
||||||
scopes = evaluate.follow_statement(stmt)
|
scopes = evaluate.follow_statement(stmt)
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ class A(object):
|
|||||||
a = 3
|
a = 3
|
||||||
#? int()
|
#? int()
|
||||||
a
|
a
|
||||||
# TODO remove this line!!
|
|
||||||
a = list()
|
a = list()
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.b = ""
|
self.b = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user