From: Dmitry Selyutin Date: Sun, 18 Jun 2023 11:18:51 +0000 (+0300) Subject: README.md: update the visitor example X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba269f2d6fe2630304884f23dd6a9c87908da988;p=mdis.git README.md: update the visitor example --- diff --git a/README.md b/README.md index b38f8fa..aa54058 100644 --- 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.ContextVisitor): @mdis.dispatcher.hook(int) @contextlib.contextmanager def dispatch_int(self, instance):