Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jun 2, 2017
1 parent 58c249d commit d42e4ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jsonextended/utils.py
Expand Up @@ -146,18 +146,18 @@ def _get_usage(q, stmt, setup='pass', ns={}):
else:
p.terminate()
if p.exitcode == None:
print 'Subprocess timed out.'
print('Subprocess timed out.')
else:
print 'Subprocess exited with code %d.' % p.exitcode
print('Subprocess exited with code %d.' % p.exitcode)
q.put(float('-inf'))

if not at_least_one_worked:
print ('ERROR: all subprocesses exited unsuccessfully. Try '
print('ERROR: all subprocesses exited unsuccessfully. Try '
'again with the `-i` option.')

usages = [q.get() for _ in xrange(repeat)]
usage = max(usages)
print u"maximum of %d: %f MB per loop" % (repeat, usage)
print("maximum of %d: %f MB per loop" % (repeat, usage))

ip.register_magics(MemMagics)

0 comments on commit d42e4ba

Please sign in to comment.