python/dist/src/Doc/lib libfcntl.tex,1.34,1.35

Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22598 Modified Files: libfcntl.tex Log Message: use file() in preference to open() Index: libfcntl.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfcntl.tex,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** libfcntl.tex 13 Jun 2004 21:11:03 -0000 1.34 --- libfcntl.tex 30 Jun 2004 21:06:45 -0000 1.35 *************** *** 154,162 **** import struct, fcntl ! file = open(...) ! rv = fcntl(file, fcntl.F_SETFL, os.O_NDELAY) lockdata = struct.pack('hhllhh', fcntl.F_WRLCK, 0, 0, 0, 0, 0) ! rv = fcntl.fcntl(file, fcntl.F_SETLKW, lockdata) \end{verbatim} --- 154,162 ---- import struct, fcntl ! f = file(...) ! rv = fcntl(f, fcntl.F_SETFL, os.O_NDELAY) lockdata = struct.pack('hhllhh', fcntl.F_WRLCK, 0, 0, 0, 0, 0) ! rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata) \end{verbatim}
participants (1)
-
montanaro@users.sourceforge.net