use file() in preference to open()
diff --git a/Doc/lib/libfcntl.tex b/Doc/lib/libfcntl.tex
index 21daa41..f7d4438 100644
--- a/Doc/lib/libfcntl.tex
+++ b/Doc/lib/libfcntl.tex
@@ -153,11 +153,11 @@
 \begin{verbatim}
 import struct, fcntl
 
-file = open(...)
-rv = fcntl(file, fcntl.F_SETFL, os.O_NDELAY)
+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(file, fcntl.F_SETLKW, lockdata)
+rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata)
 \end{verbatim}
 
 Note that in the first example the return value variable \var{rv} will