diff options
author | Brett Cannon <brett@python.org> | 2012-02-29 23:31:31 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-02-29 23:31:31 (GMT) |
commit | efb00c0cc189c1fdee329e8b7fdd07b3fd4a54cf (patch) | |
tree | 22dc683979e0dd42d049416797b756a5c6a053cd /Modules/_io/_iomodule.h | |
parent | 54c32032aa28bdfead50714bf7861c98a9843597 (diff) | |
download | cpython-efb00c0cc189c1fdee329e8b7fdd07b3fd4a54cf.zip cpython-efb00c0cc189c1fdee329e8b7fdd07b3fd4a54cf.tar.gz cpython-efb00c0cc189c1fdee329e8b7fdd07b3fd4a54cf.tar.bz2 |
Issue #14153 Create _Py_device_encoding() to prevent _io from having to import
the os module.
Diffstat (limited to 'Modules/_io/_iomodule.h')
-rw-r--r-- | Modules/_io/_iomodule.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/_io/_iomodule.h b/Modules/_io/_iomodule.h index b3a8471..987aac8 100644 --- a/Modules/_io/_iomodule.h +++ b/Modules/_io/_iomodule.h @@ -50,8 +50,8 @@ extern PyObject *_PyIncrementalNewlineDecoder_decode( `*consumed`. If not found, returns -1 and sets `*consumed` to the number of characters which can be safely put aside until another search. - - NOTE: for performance reasons, `end` must point to a NUL character ('\0'). + + NOTE: for performance reasons, `end` must point to a NUL character ('\0'). Otherwise, the function will scan further and return garbage. */ extern Py_ssize_t _PyIO_find_line_ending( int translated, int universal, PyObject *readnl, @@ -124,7 +124,6 @@ extern PyModuleDef _PyIO_Module; typedef struct { int initialized; - PyObject *os_module; PyObject *locale_module; PyObject *unsupported_operation; |