diff options
Diffstat (limited to 'Examples/python/doxygen/runme.py')
-rw-r--r-- | Examples/python/doxygen/runme.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Examples/python/doxygen/runme.py b/Examples/python/doxygen/runme.py index e23528874..657535cc2 100644 --- a/Examples/python/doxygen/runme.py +++ b/Examples/python/doxygen/runme.py @@ -5,24 +5,24 @@ import example -print "Creating some objects:" +print("Creating some objects:") c = example.MakeCircle(10) -print " Created circle", c +print(" Created circle %s" % c) s = example.MakeSquare(10) -print " Created square", s +print(" Created square %s" % s) r = example.MakeRectangleInt(10, 20) -print " Created rectangle", r +print(" Created rectangle %s" % r) -print "\nHere are some properties of the shapes:" +print("\nHere are some properties of the shapes:") for o in [c, s, r]: - print " ", o - print " area = ", o.area() - print " perimeter = ", o.perimeter() + print(" %s" % o) + print(" area = %s" % o.area()) + print(" perimeter = %s" % o.perimeter()) -print "\nRunning pydoc, this is the equivalent to executing: pydoc -w ./example.py" +print("\nRunning pydoc, this is the equivalent to executing: pydoc -w ./example.py") import pydoc pydoc.writedoc("example") -print "Open example.html in your browser to view the generated python docs" +print("Open example.html in your browser to view the generated python docs") |