Skip to content
Snippets Groups Projects
Commit 77952e5a authored by Derek Gustafson's avatar Derek Gustafson Committed by GitHub
Browse files

Make signatures of default method match

PathGraphingAstVisitor inherits from ASTVisitor, but they have different signatures.
parent 6a7aa34d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -160,11 +160,11 @@ class PathGraphingAstVisitor(ASTVisitor):
name = "Stmt %d" % lineno
self.appendPathNode(name)
 
def default(self, node):
def default(self, node, *args):
if isinstance(node, ast.stmt):
self.visitSimpleStatement(node)
else:
super(PathGraphingAstVisitor, self).default(node)
super(PathGraphingAstVisitor, self).default(node, *args)
 
def visitLoop(self, node):
name = "Loop %d" % node.lineno
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment