Commit 7252a6e8 authored by Martin v. Löwis's avatar Martin v. Löwis

Issue #20179: Apply Argument Clinic to bytes and bytearray.

Patch by Tal Einat.
parent e1b82531
......@@ -21,8 +21,8 @@ extern void _Py_bytes_title(char *result, char *s, Py_ssize_t len);
extern void _Py_bytes_capitalize(char *result, char *s, Py_ssize_t len);
extern void _Py_bytes_swapcase(char *result, char *s, Py_ssize_t len);
/* This one gets the raw argument list. */
extern PyObject* _Py_bytes_maketrans(PyObject *args);
/* The maketrans() static method. */
extern PyObject* _Py_bytes_maketrans(PyObject *frm, PyObject *to);
/* Shared __doc__ strings. */
extern const char _Py_isspace__doc__[];
......
......@@ -10,6 +10,9 @@ Release date: TBA
Core and Builtins
-----------------
- Issue #20179: Apply Argument Clinic to bytes and bytearray.
Patch by Tal Einat.
- Issue #22082: Clear interned strings in slotdefs.
- Upgrade Unicode database to Unicode 7.0.0.
......
This diff is collapsed.
......@@ -382,9 +382,9 @@ _getbuffer(PyObject *obj, Py_buffer *view)
}
PyObject *
_Py_bytes_maketrans(PyObject *args)
_Py_bytes_maketrans(PyObject *frm, PyObject *to)
{
PyObject *frm, *to, *res = NULL;
PyObject *res = NULL;
Py_buffer bfrm, bto;
Py_ssize_t i;
char *p;
......@@ -392,8 +392,6 @@ _Py_bytes_maketrans(PyObject *args)
bfrm.len = -1;
bto.len = -1;
if (!PyArg_ParseTuple(args, "OO:maketrans", &frm, &to))
return NULL;
if (_getbuffer(frm, &bfrm) < 0)
return NULL;
if (_getbuffer(to, &bto) < 0)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment