Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r54853:c5c6c9577065
Date: 2012-05-01 23:52 +0200
http://bitbucket.org/pypy/pypy/changeset/c5c6c9577065/
Log: translation fix
diff --git a/pypy/module/cpyext/unicodeobject.py
b/pypy/module/cpyext/unicodeobject.py
--- a/pypy/module/cpyext/unicodeobject.py
+++ b/pypy/module/cpyext/unicodeobject.py
@@ -416,7 +416,8 @@
NULL, the return value might be a shared object. Therefore, modification of
the resulting Unicode object is only allowed when u is NULL."""
if s:
- return make_ref(space, PyUnicode_DecodeUTF8(space, s, size, None))
+ return make_ref(space, PyUnicode_DecodeUTF8(
+ space, s, size, lltype.nullptr(rffi.CCHARP.TO)))
else:
return rffi.cast(PyObject, new_empty_unicode(space, size))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit