summaryrefslogtreecommitdiff
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-09-17 03:28:34 +0000
committerBrett Cannon <bcannon@gmail.com>2007-09-17 03:28:34 +0000
commit0153159e67bf4247c4402a1a6e717819372c9337 (patch)
treeef58a6813bfb4011b0cd542f250f292f8cba8076 /Objects/fileobject.c
parentd36a60e1e3410450d337d4de732e127e48a6a042 (diff)
downloadcpython-git-0153159e67bf4247c4402a1a6e717819372c9337.tar.gz
Add a bunch of GIL release/acquire points in tp_print implementations and for
PyObject_Print(). Closes issue #1164.
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 4c5b37d2f6..16786f87ed 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -2241,7 +2241,9 @@ PyFile_WriteString(const char *s, PyObject *f)
err_closed();
return -1;
}
+ Py_BEGIN_ALLOW_THREADS
fputs(s, fp);
+ Py_END_ALLOW_THREADS
return 0;
}
else if (!PyErr_Occurred()) {