Kaydet (Commit) 6383c2d1 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Fix SF bug #479186: compiler generates bad code for "del"

Fix by Neil Schemenauer.  Visit the Subscript node when trying to find
the operation for a statement.

XXX Not sure if there are other nodes that should be visited.
üst 41c83212
......@@ -1333,6 +1333,7 @@ class OpFinder:
elif self.op != node.flags:
raise ValueError, "mixed ops in stmt"
visitAssAttr = visitAssName
visitSubscript = visitAssName
class Delegator:
"""Base class to support delegation for augmented assignment nodes
......
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