diff --git a/pykat/finesse.py b/pykat/finesse.py index e970c0bd5fb29ca95ebaab2b3aa7102291d409c1..1e96ee48b036f17371b13cb0655f33ca39266a9a 100644 --- a/pykat/finesse.py +++ b/pykat/finesse.py @@ -1401,8 +1401,12 @@ class kat(object): #if search > -1: #print ("Trace 1: {0}".format(out[search:])) - # for now, just try to print the trace block in full - print (out[out.find(' ---') :]) + # For now, just try to print the trace block in full. + # Converting to unicode so it works in python 3. + tmpOut = out.decode('unicode_escape') + print (tmpOut[tmpOut.find(' ---') :]) + # print (out[out.find(' ---') :]) + katfile.close() perfData = []