Skip to content

Commit 7592a20

Browse files
authored
Merge pull request #26 from vindex10/bug/visit_assign_targets
fix class assign visitor. visit targets instead of the node
2 parents a0f6fdd + 68c0ff9 commit 7592a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/asthelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, instance_name):
5252
def visit_Assign(self, node):
5353
ac = AttributeCollector(self.instance_name)
5454
for target in node.targets:
55-
ac.visit(node)
55+
ac.visit(target)
5656
self.attributes |= ac.data
5757

5858

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy