summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-02-01 21:36:49 (GMT)
committerBrett Cannon <brett@python.org>2013-02-01 21:36:49 (GMT)
commit0bc4329cda62d3c84fbae8560ee33577b1bc903c (patch)
treec1c69fd9841d11a974c8b4c97a736339ce1d688f /Modules/_io/textio.c
parent85ae3566d117df8f0ade3aa14a6ddda09711a663 (diff)
parent84d0bf94b036c5eb62b1fe31d33133a5ee05516d (diff)
downloadcpython-0bc4329cda62d3c84fbae8560ee33577b1bc903c.zip
cpython-0bc4329cda62d3c84fbae8560ee33577b1bc903c.tar.gz
cpython-0bc4329cda62d3c84fbae8560ee33577b1bc903c.tar.bz2
merge
Diffstat (limited to 'Modules/_io/textio.c')
-rw-r--r--Modules/_io/textio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index afd8d41..9da4cd2 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -1247,8 +1247,11 @@ _textiowrapper_writeflush(textio *self)
Py_DECREF(pending);
if (b == NULL)
return -1;
- ret = PyObject_CallMethodObjArgs(self->buffer,
- _PyIO_str_write, b, NULL);
+ ret = NULL;
+ do {
+ ret = PyObject_CallMethodObjArgs(self->buffer,
+ _PyIO_str_write, b, NULL);
+ } while (ret == NULL && _PyIO_trap_eintr());
Py_DECREF(b);
if (ret == NULL)
return -1;