[pypy-commit] pypy py3k: really fix translation

pjenvey noreply at buildbot.pypy.org
Tue Dec 4 00:29:03 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r59302:2465cf96bcd1
Date: 2012-12-03 15:26 -0800
http://bitbucket.org/pypy/pypy/changeset/2465cf96bcd1/

Log:	really fix translation

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,7 +285,7 @@
             # py3k only
             replace = rets
         else:
-            assert encodebuf is not None
+            assert retu is not None
             codec = pypy_cjk_enc_getcodec(encodebuf)
             replace = encode(codec, retu, "strict", errorcb, namecb)
     inbuf = rffi.get_nonmovingbuffer(replace)


More information about the pypy-commit mailing list