Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r44724:0e33b10e7ac9 Date: 2011-06-05 18:11 +0200 http://bitbucket.org/pypy/pypy/changeset/0e33b10e7ac9/
Log: Translation fix. 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 @@ -158,7 +158,7 @@ elif errors == "replace": replace = UNICODE_REPLACEMENT_CHARACTER else: - assert errorcb != None + assert errorcb replace, end = errorcb(errors, namecb, reason, stringdata, start, end) inbuf = rffi.get_nonmoving_unicodebuffer(replace) @@ -251,7 +251,7 @@ except EncodeDecodeError: replace = "?" else: - assert errorcb != None + assert errorcb replace, end = errorcb(errors, namecb, reason, unicodedata, start, end) inbuf = rffi.get_nonmovingbuffer(replace) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit