1.1 --- a/moinformat/tree/graphviz.py Tue Jun 20 18:58:47 2023 +0200
1.2 +++ b/moinformat/tree/graphviz.py Wed Jun 28 16:12:26 2023 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Graphviz document tree nodes.
1.6
1.7 -Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2018, 2023 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -42,7 +42,7 @@
1.13 def prettyprint(self, indent=""):
1.14 return "%sDirective: key=%r value=%r directive=%r" % (indent, self.key, self.value, self.directive)
1.15
1.16 - def to_string(self, out):
1.17 - out.directive(self.key, self.value, self.directive)
1.18 + def visit(self, visitor):
1.19 + visitor.directive(self)
1.20
1.21 # vim: tabstop=4 expandtab shiftwidth=4