X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fcurve.py;h=53670151685a92bbc16a373e5b396854ae0e7fc3;hp=d312be36e076447b914868f9fb2ba36d26020438;hb=60b12a779acf92ec32ef2d0ed9e5766b11705150;hpb=01c8dd10d343718246c48dc2f4c122d59913de4d diff --git a/hooke/curve.py b/hooke/curve.py index d312be3..5367015 100644 --- a/hooke/curve.py +++ b/hooke/curve.py @@ -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)] @@ -188,7 +188,7 @@ class Curve (object): [}>] >>> 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