summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-12 08:10:47 (GMT)
committerGitHub <noreply@github.com>2017-03-12 08:10:47 (GMT)
commit202fda55c2dffe27125703225e5af92254602dc6 (patch)
treeafc430d7fa6bdda7251bb60703ff192b9c8a37e1 /Objects/bytesobject.c
parent0767ad40bfe83525d2ba290cc6eb7c97ce01cdd6 (diff)
downloadcpython-202fda55c2dffe27125703225e5af92254602dc6.zip
cpython-202fda55c2dffe27125703225e5af92254602dc6.tar.gz
cpython-202fda55c2dffe27125703225e5af92254602dc6.tar.bz2
bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485)
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 3b15247..c4ef495 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2293,7 +2293,7 @@ bytes_decode_impl(PyBytesObject *self, const char *encoding,
/*[clinic input]
bytes.splitlines
- keepends: int(c_default="0") = False
+ keepends: bool(accept={int}) = False
Return a list of the lines in the bytes, breaking at line boundaries.
@@ -2303,7 +2303,7 @@ true.
static PyObject *
bytes_splitlines_impl(PyBytesObject *self, int keepends)
-/*[clinic end generated code: output=3484149a5d880ffb input=7f4aac67144f9944]*/
+/*[clinic end generated code: output=3484149a5d880ffb input=a8b32eb01ff5a5ed]*/
{
return stringlib_splitlines(
(PyObject*) self, PyBytes_AS_STRING(self),