[pypy-svn] jitviewer default: handle unicode here.

alex_gaynor commits-noreply at bitbucket.org
Wed Mar 23 07:50:07 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r112:0cd27965a3bd
Date: 2011-03-23 02:49 -0400
http://bitbucket.org/pypy/jitviewer/changeset/0cd27965a3bd/

Log:	handle unicode here.

diff --git a/_jitviewer/display.py b/_jitviewer/display.py
--- a/_jitviewer/display.py
+++ b/_jitviewer/display.py
@@ -5,7 +5,7 @@
     """ A representation of a single line
     """
     def __init__(self, line, in_loop, chunks=None):
-        self.line = line
+        self.line = line.decode("utf-8")
         self.in_loop = in_loop
         if chunks is None:
             self.chunks = []


More information about the Pypy-commit mailing list