diff Resources/Samples/Python/DownloadAnonymized.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/DownloadAnonymized.py	Fri Oct 10 08:52:56 2014 +0200
+++ b/Resources/Samples/Python/DownloadAnonymized.py	Fri Oct 10 09:13:48 2014 +0200
@@ -42,7 +42,7 @@
     if name.startswith('anonymized'):
 
         # Trigger the download
-        print 'Downloading %s' % name
+        print('Downloading %s' % name)
         zipContent = RestToolbox.DoGet('%s/patients/%s/archive' % (URL, patient))
         f = open(os.path.join('/tmp', name + '.zip'), 'wb')
         f.write(zipContent)