diff options
author | Larry Hastings <larry@hastings.org> | 2015-05-04 13:59:46 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-05-04 13:59:46 (GMT) |
commit | dbfdc380df615fe7e85107ff3954b8fff3ce7741 (patch) | |
tree | 25dd738cb50b260d6822ab76f39697c69e9a44c4 /Modules/_io/_iomodule.c | |
parent | cb985563739f00dcccb03189c95deba604155777 (diff) | |
download | cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.zip cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.tar.gz cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.tar.bz2 |
Issue #24001: Argument Clinic converters now use accept={type}
instead of types={'type'} to specify the types the converter accepts.
Diffstat (limited to 'Modules/_io/_iomodule.c')
-rw-r--r-- | Modules/_io/_iomodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index ea727f2..528bcd4 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -100,9 +100,9 @@ _io.open file: object mode: str = "r" buffering: int = -1 - encoding: str(nullable=True) = NULL - errors: str(nullable=True) = NULL - newline: str(nullable=True) = NULL + encoding: str(accept={str, NoneType}) = NULL + errors: str(accept={str, NoneType}) = NULL + newline: str(accept={str, NoneType}) = NULL closefd: int(c_default="1") = True opener: object = None @@ -230,7 +230,7 @@ static PyObject * _io_open_impl(PyModuleDef *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=7615d0d746eb14d2 input=0541ce15691a82f2]*/ +/*[clinic end generated code: output=7615d0d746eb14d2 input=f4e1ca75223987bc]*/ { unsigned i; |