From ba269f2d6fe2630304884f23dd6a9c87908da988 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 18 Jun 2023 14:18:51 +0300 Subject: [PATCH] README.md: update the visitor example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2