diff options
author | Brett Cannon <brett@python.org> | 2013-02-01 21:36:49 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-02-01 21:36:49 (GMT) |
commit | 0bc4329cda62d3c84fbae8560ee33577b1bc903c (patch) | |
tree | c1c69fd9841d11a974c8b4c97a736339ce1d688f /Modules/_io/textio.c | |
parent | 85ae3566d117df8f0ade3aa14a6ddda09711a663 (diff) | |
parent | 84d0bf94b036c5eb62b1fe31d33133a5ee05516d (diff) | |
download | cpython-0bc4329cda62d3c84fbae8560ee33577b1bc903c.zip cpython-0bc4329cda62d3c84fbae8560ee33577b1bc903c.tar.gz cpython-0bc4329cda62d3c84fbae8560ee33577b1bc903c.tar.bz2 |
merge
Diffstat (limited to 'Modules/_io/textio.c')
-rw-r--r-- | Modules/_io/textio.c | 7 |
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; |