projects
/
mdis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ef499
)
visitor: simplify default hook
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Wed, 28 Jun 2023 22:11:55 +0000
(
01:11
+0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Wed, 28 Jun 2023 22:11:55 +0000
(
01:11
+0300)
src/mdis/visitor.py
patch
|
blob
|
history
diff --git
a/src/mdis/visitor.py
b/src/mdis/visitor.py
index bb87fd6dbeec2d46bf24ed8355719037e9d31348..b9c205687eb5717d272b4057d37579fae6c9f527 100644
(file)
--- a/
src/mdis/visitor.py
+++ b/
src/mdis/visitor.py
@@
-15,12
+15,12
@@
class VisitorMeta(dispatcher.DispatcherMeta):
class Visitor(dispatcher.Dispatcher, metaclass=VisitorMeta):
@dispatcher.Hook(object)
- def dispatch_object(self, node
, *arguments
):
+ def dispatch_object(self, node):
return node
class ContextVisitor(Visitor):
@dispatcher.Hook(object)
@contextlib.contextmanager
- def dispatch_object(self, node
, *arguments
):
+ def dispatch_object(self, node):
yield node