Convert from "print ..." to "print(...)"
[hooke.git] / hooke / util / caller.py
index 2384439a8b6169a03702722854f692c13b5c74d4..dee741de41513be22b21bdc1d34246f747ad874e 100644 (file)
@@ -57,7 +57,7 @@ def caller_name(depth=1):
     >>> def x(depth):
     ...     y(depth)
     >>> def y(depth):
-    ...     print caller_name(depth)
+    ...     print(caller_name(depth))
     >>> x(1)
     y
     >>> x(2)
@@ -89,7 +89,7 @@ def caller_names(depth=1):
     >>> def y():
     ...     z()
     >>> def z():
-    ...     print list(caller_names())
+    ...     print(list(caller_names()))
     >>> x()  # doctest: +ELLIPSIS
     ['z', 'y', 'x', ...]
     >>> y()  # doctest: +ELLIPSIS