mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix power operation for Python 2
This commit is contained in:
@@ -85,9 +85,9 @@ def eval_node(context, element):
|
|||||||
first_child = children.pop(0)
|
first_child = children.pop(0)
|
||||||
|
|
||||||
context_set = context.eval_node(first_child)
|
context_set = context.eval_node(first_child)
|
||||||
for trailer in children:
|
for (i, trailer) in enumerate(children):
|
||||||
if trailer == '**': # has a power operation.
|
if trailer == '**': # has a power operation.
|
||||||
right = context.eval_node(children[1])
|
right = context.eval_node(children[i + 1])
|
||||||
context_set = _eval_comparison(
|
context_set = _eval_comparison(
|
||||||
evaluator,
|
evaluator,
|
||||||
context,
|
context,
|
||||||
|
|||||||
Reference in New Issue
Block a user