Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95779:07bd199c16df
Date: 2019-02-02 22:20 +0200
http://bitbucket.org/pypy/pypy/changeset/07bd199c16df/
Log: implemented via PyUnicode_EncodeXXX
diff --git a/pypy/module/cpyext/stubs.py b/pypy/module/cpyext/stubs.py
--- a/pypy/module/cpyext/stubs.py
+++ b/pypy/module/cpyext/stubs.py
@@ -1556,13 +1556,6 @@
in consumed."""
raise NotImplementedError
-@cpython_api([rffi.CArrayPtr(Py_UNICODE), Py_ssize_t, rffi.CCHARP], PyObject)
-def PyUnicode_EncodeMBCS(space, s, size, errors):
- """Encode the Py_UNICODE buffer of the given size using MBCS and return
- a Python bytes object. Return NULL if an exception was raised by the
- codec."""
- raise NotImplementedError
-
@cpython_api([PyObject], PyObject)
def PyUnicode_AsMBCSString(space, unicode):
"""Encode a Unicode object using MBCS and return the result as Python bytes
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit