File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /usr/bin/env python
1+ #! /usr/bin/env python3
22"""
33A tool to preprocess root documentation in order to provide missing
44functionality in the documentation tools like doxygen or pandoc.
1414usage = "Usage: %s fileToBeTreated.md\n " % __file__
1515
1616def printErrAndUsage (msg ):
17- print msg
18- print usage
17+ print ( msg )
18+ print ( usage )
1919
2020def 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
9797if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments