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.
This commit is contained in:
Jeremy Hylton 2001-11-09 16:24:34 +00:00
parent 41c8321252
commit 6383c2d1a6
1 changed files with 1 additions and 0 deletions

View File

@ -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