diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-02-15 10:18:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 10:18:27 (GMT) |
commit | e8b6aaad2faf11fe315410138a5c5943d610d8d8 (patch) | |
tree | 3c679e0d286c6681b8a81b47c6d8900f14895b28 /Modules/_io/_iomodule.c | |
parent | 8a2b7ee64d1bde762438b458ea7fe88f054a3a88 (diff) | |
download | cpython-e8b6aaad2faf11fe315410138a5c5943d610d8d8.zip cpython-e8b6aaad2faf11fe315410138a5c5943d610d8d8.tar.gz cpython-e8b6aaad2faf11fe315410138a5c5943d610d8d8.tar.bz2 |
gh-101819: Remove _testcapi dependencies on specific _io symbols (#101918)
Diffstat (limited to 'Modules/_io/_iomodule.c')
-rw-r--r-- | Modules/_io/_iomodule.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index 175fa97..811b1d2 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -720,16 +720,8 @@ PyInit__io(void) // Add types for (size_t i=0; i < Py_ARRAY_LENGTH(static_types); i++) { PyTypeObject *type = static_types[i]; - // Private type not exposed in the _io module - if (type == &_PyBytesIOBuffer_Type) { - if (PyType_Ready(type) < 0) { - goto fail; - } - } - else { - if (PyModule_AddType(m, type) < 0) { - goto fail; - } + if (PyModule_AddType(m, type) < 0) { + goto fail; } } |