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/_ssl.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/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index e758da6..7a9e066 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -1877,7 +1877,7 @@ _ssl__SSLSocket_pending_impl(PySSLSocket *self) _ssl._SSLSocket.read size as len: int [ - buffer: Py_buffer(types={'rwbuffer'}) + buffer: Py_buffer(accept={rwbuffer}) ] / @@ -1887,7 +1887,7 @@ Read up to size bytes from the SSL socket. static PyObject * _ssl__SSLSocket_read_impl(PySSLSocket *self, int len, int group_right_1, Py_buffer *buffer) -/*[clinic end generated code: output=00097776cec2a0af input=4a0bbd2859e817b0]*/ +/*[clinic end generated code: output=00097776cec2a0af input=ff157eb918d0905b]*/ { PyObject *dest = NULL; char *mem; @@ -3799,7 +3799,7 @@ static PyTypeObject PySSLMemoryBIO_Type = { /* helper routines for seeding the SSL PRNG */ /*[clinic input] _ssl.RAND_add - string as view: Py_buffer(types={'str', 'buffer'}) + string as view: Py_buffer(accept={str, buffer}) entropy: double / @@ -3811,7 +3811,7 @@ string. See RFC 1750. static PyObject * _ssl_RAND_add_impl(PyModuleDef *module, Py_buffer *view, double entropy) -/*[clinic end generated code: output=0f8d5c8cce328958 input=c98b11d606b354bc]*/ +/*[clinic end generated code: output=0f8d5c8cce328958 input=580c85e6a3a4fe29]*/ { const char *buf; Py_ssize_t len, written; |