summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-12-03 22:54:21 +0000
committerGuido van Rossum <guido@python.org>2007-12-03 22:54:21 +0000
commit981babc8caea880336a453214023ac231aafbdfa (patch)
tree671dffe244d78978560d1bd740e3c5ea03f21e36 /Python/pythonrun.c
parenteb44d891941126c24619cf1823afa15c92e613c7 (diff)
downloadcpython-981babc8caea880336a453214023ac231aafbdfa.tar.gz
Add an errors parameter to open() and TextIOWrapper() to specify error handling.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index f46b90e8ac..14fe7835ee 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -770,7 +770,7 @@ initstdio(void)
#endif
}
else {
- if (!(std = PyFile_FromFd(fd, "<stdin>", "r", -1, NULL,
+ if (!(std = PyFile_FromFd(fd, "<stdin>", "r", -1, NULL, NULL,
"\n", 0))) {
goto error;
}
@@ -790,7 +790,7 @@ initstdio(void)
#endif
}
else {
- if (!(std = PyFile_FromFd(fd, "<stdout>", "w", -1, NULL,
+ if (!(std = PyFile_FromFd(fd, "<stdout>", "w", -1, NULL, NULL,
"\n", 0))) {
goto error;
}
@@ -811,7 +811,7 @@ initstdio(void)
#endif
}
else {
- if (!(std = PyFile_FromFd(fd, "<stderr>", "w", -1, NULL,
+ if (!(std = PyFile_FromFd(fd, "<stderr>", "w", -1, NULL, NULL,
"\n", 0))) {
goto error;
}