Mercurial > public > mercurial-scm > hg-stable
comparison doc/hgmanpage.py @ 51749:493034cc3265
black: format the codebase with 23.3.0
The CI has moved to 23.3.0, which is the last version that supports 3.7
at runtime, so we should honor this change.
# skip-blame mass-reformating only
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 18 Jul 2024 12:36:12 +0200 |
parents | 642e31cb55f0 |
children | 7f0cb9ee0534 |
comparison
equal
deleted
inserted
replaced
51748:39e2b2d062c1 | 51749:493034cc3265 |
---|---|
93 .. | 93 .. |
94 """ | 94 """ |
95 | 95 |
96 | 96 |
97 class Writer(writers.Writer): | 97 class Writer(writers.Writer): |
98 | |
99 supported = 'manpage' | 98 supported = 'manpage' |
100 """Formats this writer supports.""" | 99 """Formats this writer supports.""" |
101 | 100 |
102 output = None | 101 output = None |
103 """Final translated form of `document`.""" | 102 """Final translated form of `document`.""" |
295 (u'-', u'\\-'), | 294 (u'-', u'\\-'), |
296 (u"'", u'\\(aq'), | 295 (u"'", u'\\(aq'), |
297 (u'´', u"\\'"), | 296 (u'´', u"\\'"), |
298 (u'`', u'\\(ga'), | 297 (u'`', u'\\(ga'), |
299 ] | 298 ] |
300 for (in_char, out_markup) in replace_pairs: | 299 for in_char, out_markup in replace_pairs: |
301 text = text.replace(in_char, out_markup) | 300 text = text.replace(in_char, out_markup) |
302 # unicode | 301 # unicode |
303 text = self.deunicode(text) | 302 text = self.deunicode(text) |
304 if self._in_literal: | 303 if self._in_literal: |
305 # prevent interpretation of "." at line start | 304 # prevent interpretation of "." at line start |