Author: Philip Jenvey <[email protected]>
Branch: 
Changeset: r59303:bd59e70720a2
Date: 2012-12-03 15:26 -0800
http://bitbucket.org/pypy/pypy/changeset/bd59e70720a2/

Log:    really fix translation (transplanted from
        2465cf96bcd1d53401f7a545e811e83b059591e0)

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
@@ -285,6 +285,7 @@
             # py3k only
             replace = rets
         else:
+            assert retu is not None
             codec = pypy_cjk_enc_getcodec(encodebuf)
             replace = encode(codec, retu, "strict", errorcb, namecb)
     inbuf = rffi.get_nonmovingbuffer(replace)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to