diff Resources/Samples/Python/ChangesLoop.py @ 1184:4e9d517503ae

port to Python3
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 10 Oct 2014 09:13:48 +0200
parents 44382c8bcd15
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/Resources/Samples/Python/ChangesLoop.py	Fri Oct 10 08:52:56 2014 +0200
+++ b/Resources/Samples/Python/ChangesLoop.py	Fri Oct 10 09:13:48 2014 +0200
@@ -54,7 +54,7 @@
     # Remove the possible trailing characters due to DICOM padding
     patientName = patientName.strip()
 
-    print 'New instance received for patient "%s": "%s"' % (patientName, path)
+    print('New instance received for patient "%s": "%s"' % (patientName, path))
 
 
 
@@ -82,5 +82,5 @@
     current = r['Last']
 
     if r['Done']:
-        print "Everything has been processed: Waiting..."
+        print('Everything has been processed: Waiting...')
         time.sleep(1)