]> granicus.if.org Git - python/commitdiff
Update example to no longer use the FCNTL module.
authorFred Drake <fdrake@acm.org>
Thu, 10 May 2001 15:57:17 +0000 (15:57 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 10 May 2001 15:57:17 +0000 (15:57 +0000)
Doc/lib/libsignal.tex

index 11f07373fa874596cc43e92f20c36a56046bdd31..fe9b1801237863a23d036676e940fd315f538772 100644 (file)
@@ -155,7 +155,7 @@ the file; if the operation takes too long, the alarm signal will be
 sent, and the handler raises an exception.
 
 \begin{verbatim}
-import signal, os, FCNTL
+import signal, os
 
 def handler(signum, frame):
     print 'Signal handler called with signal', signum
@@ -166,7 +166,7 @@ signal.signal(signal.SIGALRM, handler)
 signal.alarm(5)
 
 # This open() may hang indefinitely
-fd = os.open('/dev/ttyS0', FCNTL.O_RDWR)  
+fd = os.open('/dev/ttyS0', os.O_RDWR)  
 
 signal.alarm(0)          # Disable the alarm
 \end{verbatim}