projects
/
mdis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f43015
)
README.md: update the visitor example
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 18 Jun 2023 11:18:51 +0000
(14:18 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 18 Jun 2023 11:18:51 +0000
(14:18 +0300)
README.md
patch
|
blob
|
history
diff --git
a/README.md
b/README.md
index b38f8fad13deca54a44efff8e2c4cc0fba888194..aa540581aa598fcb34d91aaff4234c2213e3413e 100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-57,7
+57,7
@@
The example below shows how to execute some arbitrary code upon visiting an obje
import mdis.dispatcher
import mdis.visitor
- class CustomVisitor(mdis.visitor.Visitor):
+ class CustomVisitor(mdis.visitor.
Context
Visitor):
@mdis.dispatcher.hook(int)
@contextlib.contextmanager
def dispatch_int(self, instance):