Temporary fix for annotation unicode incompatabilities.
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 7 May 2008 20:07:34 +0000 (13:07 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 7 May 2008 20:07:34 +0000 (13:07 -0700)
Cython/Compiler/Annotate.py

index c377d04d217e87b286fd254f75e253a34de1af03..21ad7b3da689666b0201e819ab6a0059b90791b7 100644 (file)
@@ -143,7 +143,7 @@ function toggleDiv(id) {
 
             f.write(" %d: " % k)
             for c, cc, html in special_chars:
-                line = line.replace(cc, html)
+                line = str(line).replace(cc, html)
             f.write(line.rstrip())
                 
             f.write('</pre>\n')