From 1efede4de85794acc8d563c8b659a8b8ca0ec366 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Tue, 29 Mar 2016 21:37:56 +0800 Subject: [PATCH] bugfix --- jlog/log_api.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/jlog/log_api.py b/jlog/log_api.py index 3dccc0a45..505a778c8 100644 --- a/jlog/log_api.py +++ b/jlog/log_api.py @@ -90,11 +90,6 @@ def renderJSON(script_path, time_file_path): offset = 0 for t in timing: dt = scriptf.read(t[1]) - # try: - # data = dt.encode('unicode_escape').decode('utf-8', 'ignore') - # except (UnicodeEncodeError, UnicodeDecodeError): - # data = dt.decode('utf-8', 'ignore') - # print ('###### (%s, %s)' % (t[1], repr(data))) offset += t[0] ret[str(offset/float(1000))] = dt.decode('utf-8', 'replace') return dumps(ret)