From 202fda55c2dffe27125703225e5af92254602dc6 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Mar 2017 10:10:47 +0200 Subject: bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) --- Objects/bytearrayobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Objects/bytearrayobject.c') diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 693da5cc28..3a80b73e0b 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -1952,7 +1952,7 @@ bytearray_join(PyByteArrayObject *self, PyObject *iterable_of_bytes) /*[clinic input] bytearray.splitlines - keepends: int(c_default="0") = False + keepends: bool(accept={int}) = False Return a list of the lines in the bytearray, breaking at line boundaries. @@ -1962,7 +1962,7 @@ true. static PyObject * bytearray_splitlines_impl(PyByteArrayObject *self, int keepends) -/*[clinic end generated code: output=4223c94b895f6ad9 input=8ccade941e5ea0bd]*/ +/*[clinic end generated code: output=4223c94b895f6ad9 input=99a27ad959b9cf6b]*/ { return stringlib_splitlines( (PyObject*) self, PyByteArray_AS_STRING(self), -- cgit v1.2.1