Rencode module now always loads strings as utf-8 encoded byte strings.

This commit is contained in:
Chase Sterling 2012-11-26 22:01:15 -05:00
parent 4f59a48f57
commit 6b5cf3396d
1 changed files with 0 additions and 6 deletions

View File

@ -159,12 +159,6 @@ def decode_string(x, f):
raise ValueError
colon += 1
s = x[colon:colon+n]
try:
t = s.decode("utf8")
if len(t) != len(s):
s = t
except UnicodeDecodeError:
pass
return (s, colon+n)
def decode_list(x, f):