Mercurial > public > mercurial-scm > hg-stable
comparison doc/hgmanpage.py @ 45957:89a2afe31e82
formating: upgrade to black 20.8b1
This required a couple of small tweaks to un-confuse black, but now it
works. Big formatting changes come from:
* Dramatically improved collection-splitting logic upstream
* Black having a strong (correct IMO) opinion that """ is better than '''
Differential Revision: https://phab.mercurial-scm.org/D9430
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 27 Nov 2020 17:03:29 -0500 |
parents | 2372284d9457 |
children | f38bf44e077f |
comparison
equal
deleted
inserted
replaced
45956:346af7687c6f | 45957:89a2afe31e82 |
---|---|
820 | 820 |
821 def visit_list_item(self, node): | 821 def visit_list_item(self, node): |
822 # man 7 man argues to use ".IP" instead of ".TP" | 822 # man 7 man argues to use ".IP" instead of ".TP" |
823 self.body.append( | 823 self.body.append( |
824 '.IP %s %d\n' | 824 '.IP %s %d\n' |
825 % (next(self._list_char[-1]), self._list_char[-1].get_width(),) | 825 % ( |
826 next(self._list_char[-1]), | |
827 self._list_char[-1].get_width(), | |
828 ) | |
826 ) | 829 ) |
827 | 830 |
828 def depart_list_item(self, node): | 831 def depart_list_item(self, node): |
829 pass | 832 pass |
830 | 833 |