summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.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 /Modules/_io/textio.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 'Modules/_io/textio.c')
-rw-r--r--Modules/_io/textio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index 1d32d53..4133bf3 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -511,13 +511,13 @@ _PyIncrementalNewlineDecoder_decode(PyObject *myself,
/*[clinic input]
_io.IncrementalNewlineDecoder.decode
input: object
- final: int(c_default="0") = False
+ final: bool(accept={int}) = False
[clinic start generated code]*/
static PyObject *
_io_IncrementalNewlineDecoder_decode_impl(nldecoder_object *self,
PyObject *input, int final)
-/*[clinic end generated code: output=0d486755bb37a66e input=d65677385bfd6827]*/
+/*[clinic end generated code: output=0d486755bb37a66e input=a4ea97f26372d866]*/
{
return _PyIncrementalNewlineDecoder_decode((PyObject *) self, input, final);
}
@@ -792,8 +792,8 @@ _io.TextIOWrapper.__init__
encoding: str(accept={str, NoneType}) = NULL
errors: str(accept={str, NoneType}) = NULL
newline: str(accept={str, NoneType}) = NULL
- line_buffering: int(c_default="0") = False
- write_through: int(c_default="0") = False
+ line_buffering: bool(accept={int}) = False
+ write_through: bool(accept={int}) = False
Character and line based layer over a BufferedIOBase object, buffer.
@@ -830,7 +830,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer,
const char *encoding, const char *errors,
const char *newline, int line_buffering,
int write_through)
-/*[clinic end generated code: output=56a83402ce2a8381 input=3126cb3101a2c99b]*/
+/*[clinic end generated code: output=56a83402ce2a8381 input=598d10cc5f2ed7dd]*/
{
PyObject *raw, *codec_info = NULL;
_PyIO_State *state = NULL;