diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-12 08:10:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-12 08:10:47 (GMT) |
commit | 202fda55c2dffe27125703225e5af92254602dc6 (patch) | |
tree | afc430d7fa6bdda7251bb60703ff192b9c8a37e1 /Modules/_io/_iomodule.c | |
parent | 0767ad40bfe83525d2ba290cc6eb7c97ce01cdd6 (diff) | |
download | cpython-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/_iomodule.c')
-rw-r--r-- | Modules/_io/_iomodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index f4d3cbd..8f0b72a 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -105,7 +105,7 @@ _io.open encoding: str(accept={str, NoneType}) = NULL errors: str(accept={str, NoneType}) = NULL newline: str(accept={str, NoneType}) = NULL - closefd: int(c_default="1") = True + closefd: bool(accept={int}) = True opener: object = None Open file and return a stream. Raise IOError upon failure. @@ -232,7 +232,7 @@ static PyObject * _io_open_impl(PyObject *module, PyObject *file, const char *mode, int buffering, const char *encoding, const char *errors, const char *newline, int closefd, PyObject *opener) -/*[clinic end generated code: output=aefafc4ce2b46dc0 input=f4e1ca75223987bc]*/ +/*[clinic end generated code: output=aefafc4ce2b46dc0 input=7f81b2a1d3b02344]*/ { unsigned i; |