Commit 421909fc authored by gsamain's avatar gsamain Committed by Xavier Thompson

When doing lock analysis on slices, check the lock of start and end as rhs, not lhs

parent cdfb36be
......@@ -4980,6 +4980,13 @@ class SliceIndexNode(ExprNode):
index = not_a_constant
return self.base.inferable_item_node(index)
def ensure_subexpr_lhs_locked(self, env):
self.base.ensure_lhs_locked(env)
if self.start:
self.start.ensure_rhs_locked(env)
elif self.stop:
self.stop.ensure_rhs_locked(env)
def may_be_none(self):
base_type = self.base.type
if base_type:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment