[pypy-commit] pypy default: Translation fix.
arigo
noreply at buildbot.pypy.org
Sun Jun 5 18:11:07 CEST 2011
Author: Armin Rigo <arigo at 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)
More information about the pypy-commit
mailing list