comparison doc/hgmanpage.py @ 49037:642e31cb55f0

py3: use class X: instead of class X(object): The inheritance from object is implied in Python 3. So this should be equivalent. This change was generated via an automated search and replace. So there may have been some accidental changes. Differential Revision: https://phab.mercurial-scm.org/D12352
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 13:08:28 -0700
parents 6000f5b25c9b
children 493034cc3265
comparison
equal deleted inserted replaced
49036:55d132525155 49037:642e31cb55f0
110 visitor = self.translator_class(self.document) 110 visitor = self.translator_class(self.document)
111 self.document.walkabout(visitor) 111 self.document.walkabout(visitor)
112 self.output = visitor.astext() 112 self.output = visitor.astext()
113 113
114 114
115 class Table(object): 115 class Table:
116 def __init__(self): 116 def __init__(self):
117 self._rows = [] 117 self._rows = []
118 self._options = ['center'] 118 self._options = ['center']
119 self._tab_char = '\t' 119 self._tab_char = '\t'
120 self._coldefs = [] 120 self._coldefs = []
310 310
311 def depart_Text(self, node): 311 def depart_Text(self, node):
312 pass 312 pass
313 313
314 def list_start(self, node): 314 def list_start(self, node):
315 class enum_char(object): 315 class enum_char:
316 enum_style = { 316 enum_style = {
317 'bullet': '\\(bu', 317 'bullet': '\\(bu',
318 'emdash': '\\(em', 318 'emdash': '\\(em',
319 } 319 }
320 320