Mercurial > hg > orthanc
diff Resources/Samples/Python/HighPerformanceAutoRouting.py @ 1184:4e9d517503ae
port to Python3
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 10 Oct 2014 09:13:48 +0200 |
parents | fef79a477e09 |
children | 6e7e5ed91c2d |
line wrap: on
line diff
--- a/Resources/Samples/Python/HighPerformanceAutoRouting.py Fri Oct 10 08:52:56 2014 +0200 +++ b/Resources/Samples/Python/HighPerformanceAutoRouting.py Fri Oct 10 09:13:48 2014 +0200 @@ -107,7 +107,7 @@ break if len(instances) > 0: - print 'Sending a packet of %d instances' % len(instances) + print('Sending a packet of %d instances' % len(instances)) start = time.time() # Send all the instances with a single DICOM connexion @@ -124,7 +124,7 @@ RestToolbox.DoDelete('%s/exports' % URL) end = time.time() - print 'The packet of %d instances has been sent in %d seconds' % (len(instances), end - start) + print('The packet of %d instances has been sent in %d seconds' % (len(instances), end - start)) # @@ -133,7 +133,7 @@ def PrintProgress(queue): while True: - print 'Current queue size: %d' % (queue.qsize()) + print('Current queue size: %d' % (queue.qsize())) time.sleep(1)