Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r57303:8215e4553b67
Date: 2012-09-13 00:10 +0200
http://bitbucket.org/pypy/pypy/changeset/8215e4553b67/

Log:    Fix test in _multibytescodec module, and probably translation as
        well.

diff --git a/pypy/module/_multibytecodec/c_codecs.py 
b/pypy/module/_multibytecodec/c_codecs.py
--- a/pypy/module/_multibytecodec/c_codecs.py
+++ b/pypy/module/_multibytecodec/c_codecs.py
@@ -279,10 +279,8 @@
             replace = "?"
     else:
         assert errorcb
-        ret, end = errorcb(errors, namecb, reason,
-                           unicodedata, start, end)
-        codec = pypy_cjk_enc_getcodec(encodebuf)
-        replace = encode(codec, ret, "strict", errorcb, namecb)
+        replace, end = errorcb(errors, namecb, reason,
+                               unicodedata, start, end)
     inbuf = rffi.get_nonmovingbuffer(replace)
     try:
         r = pypy_cjk_enc_replace_on_error(encodebuf, inbuf, len(replace), end)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to