diff options
author | Brett Cannon <brett@python.org> | 2013-02-01 21:37:07 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-02-01 21:37:07 (GMT) |
commit | addebca75117f8eebb29bdf9e9eb225f20ccd924 (patch) | |
tree | 0db3fda4b3bfcf220609fbff2d8b080f29eb7105 /Modules/_io/textio.c | |
parent | da9cf0eef8c9cb338ad71330345423c9de2e0a01 (diff) | |
parent | ee9b1722550a59dba3c36075e1d6d72f623e5cd7 (diff) | |
download | cpython-addebca75117f8eebb29bdf9e9eb225f20ccd924.zip cpython-addebca75117f8eebb29bdf9e9eb225f20ccd924.tar.gz cpython-addebca75117f8eebb29bdf9e9eb225f20ccd924.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 a93049f..ffaa945 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; |