From: Michael W. Hudson Date: Fri, 23 Aug 2002 16:28:16 +0000 (+0000) Subject: backport gvanrossum's checkin of X-Git-Tag: v2.2.2b1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5fad242495d20200b86868d0ec1ebd5752a62ee;p=thirdparty%2FPython%2Fcpython.git backport gvanrossum's checkin of revision 1.86 of libos.tex SF bug 563750 (Alex Martelli): posix_tmpfile(): The file returned by tmpfile() has mode w+b, so use that in the call to PyFile_FromFile(). Bugfix candidate. --- diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index a82f04058c93..7aed6fb415a1 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -311,7 +311,7 @@ Availability: \UNIX, Windows. \end{funcdesc} \begin{funcdesc}{tmpfile}{} -Return a new file object opened in update mode (\samp{w+}). The file +Return a new file object opened in update mode (\samp{w+b}). The file has no directory entries associated with it and will be automatically deleted once there are no file descriptors for the file. Availability: \UNIX, Windows.