We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b19a3fe commit 2cf0a30Copy full SHA for 2cf0a30
1 file changed
base/src/xml.act
@@ -23,6 +23,9 @@ n.text and c.tail for all children of n.
23
def encode(self) -> str:
24
NotImplemented
25
26
+ def __str__(self):
27
+ return self.encode()
28
+
29
def __repr__(self):
30
# Building the arguments to xml.Node() and skip arguments where the
31
# current value equals the default. We do this with appending to a
0 commit comments