Mercurial > public > mercurial-scm > hg
comparison doc/hgmanpage.py @ 14764:a7d5816087a9 stable
classes: fix class style problems found by b071cd58af50
This makes test-wireprotocol.py work on Python 2.4
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 29 Jun 2011 15:00:00 +0200 |
parents | cdda48c93676 |
children | 462dd183bd73 |
comparison
equal
deleted
inserted
replaced
14763:b071cd58af50 | 14764:a7d5816087a9 |
---|---|
102 visitor = self.translator_class(self.document) | 102 visitor = self.translator_class(self.document) |
103 self.document.walkabout(visitor) | 103 self.document.walkabout(visitor) |
104 self.output = visitor.astext() | 104 self.output = visitor.astext() |
105 | 105 |
106 | 106 |
107 class Table: | 107 class Table(object): |
108 def __init__(self): | 108 def __init__(self): |
109 self._rows = [] | 109 self._rows = [] |
110 self._options = ['center'] | 110 self._options = ['center'] |
111 self._tab_char = '\t' | 111 self._tab_char = '\t' |
112 self._coldefs = [] | 112 self._coldefs = [] |
298 | 298 |
299 def depart_Text(self, node): | 299 def depart_Text(self, node): |
300 pass | 300 pass |
301 | 301 |
302 def list_start(self, node): | 302 def list_start(self, node): |
303 class enum_char: | 303 class enum_char(object): |
304 enum_style = { | 304 enum_style = { |
305 'bullet' : '\\(bu', | 305 'bullet' : '\\(bu', |
306 'emdash' : '\\(em', | 306 'emdash' : '\\(em', |
307 } | 307 } |
308 | 308 |