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/fileio.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/fileio.c')
-rw-r--r-- | Modules/_io/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 67d5e3e..b99506f 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -207,7 +207,7 @@ extern int _Py_open_cloexec_works; _io.FileIO.__init__ file as nameobj: object mode: str = "r" - closefd: int(c_default="1") = True + closefd: bool(accept={int}) = True opener: object = None Open a file. @@ -228,7 +228,7 @@ results in functionality similar to passing None). static int _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode, int closefd, PyObject *opener) -/*[clinic end generated code: output=23413f68e6484bbd input=193164e293d6c097]*/ +/*[clinic end generated code: output=23413f68e6484bbd input=1596c9157a042a39]*/ { #ifdef MS_WINDOWS Py_UNICODE *widename = NULL; |