This commit is contained in:
Hannes Plattner 2023-06-28 13:54:51 +02:00
parent 88f8b968e6
commit f5c80948c0

View file

@ -364,7 +364,7 @@ class NavigableString(unicode, PageElement):
raise AttributeError, "'%s' object has no attribute '%s'" % (self.__class__.__name__, attr)
def __unicode__(self):
return self.__str__(None)
return __str__(self, None)
def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING):
if encoding: