diff -r dc36535a5edc -r 9db77d46de79 doc/hgmanpage.py --- a/doc/hgmanpage.py Mon Jan 06 14:07:43 2025 -0500 +++ b/doc/hgmanpage.py Mon Jan 06 14:15:40 2025 -0500 @@ -283,18 +283,18 @@ return ''.join(self.head + self.body + self.foot) def deunicode(self, text): - text = text.replace(u'\xa0', '\\ ') - text = text.replace(u'\u2020', '\\(dg') + text = text.replace('\xa0', '\\ ') + text = text.replace('\u2020', '\\(dg') return text def visit_Text(self, node): text = node.astext() text = text.replace('\\', '\\e') replace_pairs = [ - (u'-', u'\\-'), - (u"'", u'\\(aq'), - (u'´', u"\\'"), - (u'`', u'\\(ga'), + ('-', '\\-'), + ("'", '\\(aq'), + ('´', "\\'"), + ('`', '\\(ga'), ] for in_char, out_markup in replace_pairs: text = text.replace(in_char, out_markup)