aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-03-02 10:07:06 +0100
committerArmin Rigo <arigo@tunes.org>2013-03-02 10:07:06 +0100
commit8ebe2da45489e1b32c2ca6bd3f89f029e73775e4 (patch)
treeaff8d75ea28431e7c4d386109c532a475cfc8681 /dotviewer
parentfix number of args to tparm (patch from yamt) (diff)
downloadpypy-8ebe2da45489e1b32c2ca6bd3f89f029e73775e4.tar.gz
pypy-8ebe2da45489e1b32c2ca6bd3f89f029e73775e4.tar.bz2
pypy-8ebe2da45489e1b32c2ca6bd3f89f029e73775e4.zip
Attempted fix to follow links.
Diffstat (limited to 'dotviewer')
-rw-r--r--dotviewer/msgstruct.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/dotviewer/msgstruct.py b/dotviewer/msgstruct.py
index 2029023fe0..26aefaf5b0 100644
--- a/dotviewer/msgstruct.py
+++ b/dotviewer/msgstruct.py
@@ -24,9 +24,15 @@ long_min = -2147483648
long_max = 2147483647
+def _encodeme(x):
+ if type(x) is unicode:
+ x = x.encode('utf-8')
+ return x
+
def message(tp, *values):
#print >> sys.stderr, tp, values
typecodes = ['']
+ values = map(_encodeme, values)
for v in values:
if type(v) is str:
typecodes.append('%ds' % len(v))