File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ def getText(nodelist):
2626 return rc
2727
2828def handleSlideshow (slideshow ):
29- print "<html>"
29+ print ( "<html>" )
3030 handleSlideshowTitle (slideshow .getElementsByTagName ("title" )[0 ])
3131 slides = slideshow .getElementsByTagName ("slide" )
3232 handleToc (slides )
3333 handleSlides (slides )
34- print "</html>"
34+ print ( "</html>" )
3535
3636def handleSlides (slides ):
3737 for slide in slides :
@@ -42,23 +42,23 @@ def handleSlide(slide):
4242 handlePoints (slide .getElementsByTagName ("point" ))
4343
4444def handleSlideshowTitle (title ):
45- print "<title>%s</title>" % getText (title .childNodes )
45+ print ( "<title>%s</title>" % getText (title .childNodes ) )
4646
4747def handleSlideTitle (title ):
48- print "<h2>%s</h2>" % getText (title .childNodes )
48+ print ( "<h2>%s</h2>" % getText (title .childNodes ) )
4949
5050def handlePoints (points ):
51- print "<ul>"
51+ print ( "<ul>" )
5252 for point in points :
5353 handlePoint (point )
54- print "</ul>"
54+ print ( "</ul>" )
5555
5656def handlePoint (point ):
57- print "<li>%s</li>" % getText (point .childNodes )
57+ print ( "<li>%s</li>" % getText (point .childNodes ) )
5858
5959def handleToc (slides ):
6060 for slide in slides :
6161 title = slide .getElementsByTagName ("title" )[0 ]
62- print "<p>%s</p>" % getText (title .childNodes )
62+ print ( "<p>%s</p>" % getText (title .childNodes ) )
6363
6464handleSlideshow (dom )
Original file line number Diff line number Diff line change 1212if __name__ == '__main__' :
1313
1414 if sys .version_info [:3 ] < (2 , 5 , 1 ):
15- print >> sys . stderr , """\
15+ print ( """\
1616 Error: Sphinx needs to be executed with Python 2.5.1 or newer
1717(If you run this from the Makefile, you can set the PYTHON variable
1818to the path of an alternative interpreter executable, e.g.,
1919``make html PYTHON=python2.5``).
20- """
20+ """ , file = sys . stderr )
2121 sys .exit (1 )
2222
2323 from sphinx import main
Original file line number Diff line number Diff line change 77try :
88 import os
99except :
10- print """Could not import the standard "os" module.
11- Please check your PYTHONPATH environment variable."""
10+ print ( """Could not import the standard "os" module.
11+ Please check your PYTHONPATH environment variable.""" )
1212 sys .exit (1 )
1313
1414try :
1515 import symbol
1616except :
17- print """Could not import the standard "symbol" module. If this is
18- a PC, you should add the dos_8x3 directory to your PYTHONPATH."""
17+ print ( """Could not import the standard "symbol" module. If this is
18+ a PC, you should add the dos_8x3 directory to your PYTHONPATH.""" )
1919 sys .exit (1 )
2020
2121import os
You can’t perform that action at this time.
0 commit comments