Convert print to function for Python 3 compatibility

This commit is contained in:
Mike Croucher 2015-02-26 09:01:27 +00:00
parent 4512964f09
commit 4b4e5d4901
5 changed files with 10 additions and 10 deletions

View file

@ -12,7 +12,7 @@ except:
def plot_optimizer(optimizer):
if optimizer.trace == None:
print "No trace present so I can't plot it. Please check that the optimizer actually supplies a trace."
print("No trace present so I can't plot it. Please check that the optimizer actually supplies a trace.")
else:
pb.figure()
pb.plot(optimizer.trace)