diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-01-16 16:34:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 16:34:21 (GMT) |
commit | 4d9aec022063dcfc4cf40ae46b1c4a968297e664 (patch) | |
tree | d422eb5dbd9f265fca38e7315b95ab3faa66adab /Modules/_io/_iomodule.c | |
parent | 378edee0a3b913d60653dc17dfe61d83405a8135 (diff) | |
download | cpython-4d9aec022063dcfc4cf40ae46b1c4a968297e664.zip cpython-4d9aec022063dcfc4cf40ae46b1c4a968297e664.tar.gz cpython-4d9aec022063dcfc4cf40ae46b1c4a968297e664.tar.bz2 |
bpo-31572: Get rid of PyObject_HasAttr() and _PyObject_HasAttrId() in the _io module. (#3726)
Diffstat (limited to 'Modules/_io/_iomodule.c')
-rw-r--r-- | Modules/_io/_iomodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index cfd78e2..11d7b01 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -36,6 +36,7 @@ PyObject *_PyIO_str_getstate = NULL; PyObject *_PyIO_str_isatty = NULL; PyObject *_PyIO_str_newlines = NULL; PyObject *_PyIO_str_nl = NULL; +PyObject *_PyIO_str_peek = NULL; PyObject *_PyIO_str_read = NULL; PyObject *_PyIO_str_read1 = NULL; PyObject *_PyIO_str_readable = NULL; @@ -740,6 +741,7 @@ PyInit__io(void) ADD_INTERNED(getstate) ADD_INTERNED(isatty) ADD_INTERNED(newlines) + ADD_INTERNED(peek) ADD_INTERNED(read) ADD_INTERNED(read1) ADD_INTERNED(readable) |