Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 44134:e08b12c3b913
Add an errors parameter to open() and TextIOWrapper() to specify error handling.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 03 Dec 2007 22:54:21 +0000 |
| parents | f324631462a2 |
| children | c8b339cfef1f |
line wrap: on
line diff
--- a/Python/import.c Mon Dec 03 21:07:25 2007 +0000 +++ b/Python/import.c Mon Dec 03 22:54:21 2007 +0000 @@ -2602,7 +2602,7 @@ (char*)PyUnicode_GetDefaultEncoding(); } fob = PyFile_FromFd(fd, pathname, fdp->mode, -1, - (char*)encoding, NULL, 1); + (char*)encoding, NULL, NULL, 1); if (fob == NULL) { close(fd); PyMem_FREE(found_encoding);
