Convert from "print ..." to "print(...)"
[hooke.git] / test / jpk_driver.py
index 022b2564ab5119ba0ea76e3d0b6d166d3ea8d121..63521a68035200ce41a85aec3511b379192bf8c9 100644 (file)
@@ -42,9 +42,9 @@ Ensure that we can at least load each of the example curves.
 
 >>> p = h.playlists.current()
 >>> for i,curve in enumerate(p.items()):
-...     print (i,
+...     print((i,
 ...            curve.info['raw info']['file-format-version'],
-...            [d.info['name'] for d in curve.data]) # doctest: +REPORT_UDIFF
+...            [d.info['name'] for d in curve.data])) # doctest: +REPORT_UDIFF
 (0, '0.5', ['approach', 'retract'])
 (1, '0.5', ['approach', 'pause', 'retract'])
 (2, '0.2', ['pause-0', 'approach', 'pause-1', 'retract'])
@@ -58,10 +58,10 @@ Load each of the example segments in the :file:`Data1D` directory.
 >>> base_dir = os.path.join('test', 'data', 'vclamp_jpk', 'Data1D')
 >>> for file_name in sorted(os.listdir(base_dir)):
 ...     path = os.path.join(base_dir, file_name)
-...     print path
-...     print driver.is_me(path)
+...     print(path)
+...     print(driver.is_me(path))
 ...     data = driver.read(path)
-...     print data.shape, data[:5], data[-5:]
+...     print(' '.join(str(x) for x in [data.shape, data[:5], data[-5:]]))
 ...     # doctest: +ELLIPSIS, +REPORT_UDIFF
 test/data/vclamp_jpk/Data1D/data1D-ConstantData1D-1282315524304.jpk-data1D
 True