Skip to content

Commit 456da63

Browse files
committed
[doc] fix compilation of Makefile based primer generation using uptodate python
1 parent 2924cfa commit 456da63

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

documentation/primer/rootDocPreprocessor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /usr/bin/env python3
22
"""
33
A tool to preprocess root documentation in order to provide missing
44
functionality in the documentation tools like doxygen or pandoc.
@@ -14,8 +14,8 @@
1414
usage="Usage: %s fileToBeTreated.md\n" %__file__
1515

1616
def printErrAndUsage(msg):
17-
print msg
18-
print usage
17+
print(msg)
18+
print(usage)
1919

2020
def checkInvocation(argv):
2121
"""
@@ -49,7 +49,7 @@ def includeFilter(text):
4949
if line.startswith("@ROOT_INCLUDE_FILE"):
5050
inclFileName = line.split()[1]
5151
if not os.path.exists(inclFileName):
52-
print "[includeFilter] Error: file %s does not exist." %inclFileName
52+
print("[includeFilter] Error: file", inclFileName, "does not exist.")
5353
retcode+=1
5454
continue
5555
for inclFileLine in open(inclFileName).readlines():
@@ -91,7 +91,7 @@ def preprocessFile():
9191
filename = argv[1]
9292
retcode = applyFilters(filename)
9393
if retcode != 0:
94-
print "Errors during the preprocessing."
94+
print("Errors during the preprocessing.")
9595
return retcode
9696

9797
if __name__ == "__main__":

0 commit comments

Comments
 (0)