summaryrefslogtreecommitdiff
path: root/Modules/_io/textio.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-05-04 06:59:46 -0700
committerLarry Hastings <larry@hastings.org>2015-05-04 06:59:46 -0700
commitdbfdc380df615fe7e85107ff3954b8fff3ce7741 (patch)
tree25dd738cb50b260d6822ab76f39697c69e9a44c4 /Modules/_io/textio.c
parentcb985563739f00dcccb03189c95deba604155777 (diff)
downloadcpython-git-dbfdc380df615fe7e85107ff3954b8fff3ce7741.tar.gz
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/textio.c')
-rw-r--r--Modules/_io/textio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index f61b2818f3..c45f70dc21 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -789,9 +789,9 @@ static encodefuncentry encodefuncs[] = {
/*[clinic input]
_io.TextIOWrapper.__init__
buffer: object
- 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
line_buffering: int(c_default="0") = False
write_through: int(c_default="0") = False
@@ -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=1f20decb8d54a4ec]*/
+/*[clinic end generated code: output=56a83402ce2a8381 input=3126cb3101a2c99b]*/
{
PyObject *raw, *codec_info = NULL;
_PyIO_State *state = NULL;