mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-22 09:40:27 +08:00
Statement.get_assignment_details -> get_commands (makes more sense)
This commit is contained in:
@@ -311,10 +311,9 @@ def sys_path_with_modifications(module):
|
||||
|
||||
sys_path = list(get_sys_path()) # copy
|
||||
for p in possible_stmts:
|
||||
try:
|
||||
call = p.get_assignment_calls().get_only_subelement()
|
||||
except AttributeError:
|
||||
continue
|
||||
commands = p.get_commands()
|
||||
assert len(commands) == 1
|
||||
call = commands[0]
|
||||
n = call.name
|
||||
if not isinstance(n, pr.Name) or len(n.names) != 3:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user