Skip to content

Commit f16abaf

Browse files
committed
DOC: python 3 compatibility fixes in doc/tools
1 parent 9909550 commit f16abaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/tools/apigen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,12 +425,12 @@ def write_modules_api(self, modules, outdir):
425425
written_modules = []
426426

427427
for ulm, mods in module_by_ulm.items():
428-
print "Generating docs for %s:" % ulm
428+
print("Generating docs for %s:" % ulm)
429429
document_head = []
430430
document_body = []
431431

432432
for m in mods:
433-
print " -> " + m
433+
print(" -> " + m)
434434
head, body = self.generate_api_doc(m)
435435

436436
document_head.append(head)

doc/tools/build_modref_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def abort(error):
3636

3737
try:
3838
__import__(package)
39-
except ImportError, e:
39+
except ImportError as e:
4040
abort("Can not import " + package)
4141

4242
module = sys.modules[package]

0 commit comments

Comments
 (0)