Convert from "print ..." to "print(...)"
[hooke.git] / hooke / curve.py
index d312be36e076447b914868f9fb2ba36d26020438..53670151685a92bbc16a373e5b396854ae0e7fc3 100644 (file)
@@ -92,7 +92,7 @@ class Data (numpy.ndarray):
 
     >>> import yaml
     >>> s = yaml.dump(d)
-    >>> print s
+    >>> print(s)
     !hooke.curve.DataInfo
     columns: [distance (m), force (N)]
     <BLANKLINE>
@@ -188,7 +188,7 @@ class Curve (object):
     [<CommandMessage curve info {curve: <Curve path>}>]
     >>> z.command_stack[-1].arguments['curve'] == z
     True
-    >>> print yaml.dump(c)  # doctest: +REPORT_UDIFF
+    >>> print(yaml.dump(c))  # doctest: +REPORT_UDIFF
     &id001 !!python/object:hooke.curve.Curve
     command_stack: !!python/object/new:hooke.command_stack.CommandStack
       listitems:
@@ -214,7 +214,7 @@ class Curve (object):
 
     YAML still works, though.
 
-    >>> print yaml.dump(c.command_stack)  # doctest: +REPORT_UDIFF
+    >>> print(yaml.dump(c.command_stack))  # doctest: +REPORT_UDIFF
     &id001 !!python/object/new:hooke.command_stack.CommandStack
     listitems:
     - !!python/object:hooke.engine.CommandMessage