diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2014-07-27 14:25:09 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2014-07-27 14:25:09 (GMT) |
commit | 7252a6e81e1e1616057fa806836ec85ec88e1c1c (patch) | |
tree | e0cf17aa22a44a84c46abca7e22f1b419e224e35 /Objects/bytes_methods.c | |
parent | e1b82531b32295604eacd27faeb87431c426bd52 (diff) | |
download | cpython-7252a6e81e1e1616057fa806836ec85ec88e1c1c.zip cpython-7252a6e81e1e1616057fa806836ec85ec88e1c1c.tar.gz cpython-7252a6e81e1e1616057fa806836ec85ec88e1c1c.tar.bz2 |
Issue #20179: Apply Argument Clinic to bytes and bytearray.
Patch by Tal Einat.
Diffstat (limited to 'Objects/bytes_methods.c')
-rw-r--r-- | Objects/bytes_methods.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c index 4e8107b..5314ab4 100644 --- a/Objects/bytes_methods.c +++ b/Objects/bytes_methods.c @@ -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) |