fix method call

This commit is contained in:
Hannes Plattner 2023-06-28 13:50:28 +02:00
parent 674cd62ae6
commit 88f8b968e6

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 __str__(self, None)
return self.__str__(None)
def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING):
if encoding: