Skip to content

Commit e48ab08

Browse files
committed
Make man2mallard.py Python 3-compatible.
1 parent 1e45663 commit e48ab08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/mallard2man.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def _generateElement(self, ele):
249249
d = codecs.open(f, 'r', encoding='utf-8').read()
250250
self._writeLine(d)
251251
else:
252-
print 'unknown element type', ele
252+
print('unknown element type %s' % ele)
253253

254254
def _generateTable(self, table):
255255
for child in table.getchildren():
@@ -306,7 +306,7 @@ def main(filenames, section='3'):
306306

307307
if __name__ == '__main__':
308308
if len(sys.argv) < 3:
309-
print 'usage: %s SECTION FILENAMES...' % sys.argv[0]
309+
print('usage: %s SECTION FILENAMES...' % sys.argv[0])
310310
sys.exit(1)
311311
section = sys.argv[1]
312312
main(sys.argv[2:], section)

0 commit comments

Comments
 (0)