We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb463e commit 3445d23Copy full SHA for 3445d23
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
# A very hacky workaround for building the arguments to xml.Node() where
31
# we skip arguments where the current value equals the default. We could
0 commit comments