]> granicus.if.org Git - python/commitdiff
posix->os.
authorGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 22:27:04 +0000 (22:27 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 22:27:04 +0000 (22:27 +0000)
Tools/faqwiz/faqw.py

index 9babc7adfb3862d6818ec1a49f18689040d9da39..534fd9cde9e5e2067884485e7af93286bfa325fe 100755 (executable)
@@ -15,8 +15,8 @@
 # lives, and change the value for SRCDIR to where your faqwiz.py
 # module lives.  The faqconf.py and faqcust.py files live there, too.
 
-import posix
-t1 = posix.times()
+import os
+t1 = os.times() # If this doesn't work, just get rid of the timing code!
 try:
     FAQDIR = "/usr/people/guido/python/FAQ"
     SRCDIR = "/usr/people/guido/python/src/Tools/faqwiz"
@@ -31,6 +31,6 @@ except:
     print
     import cgi
     cgi.print_exception(t, v, tb)
-t2 = posix.times()
+t2 = os.times() # If this doesn't work, get rid of this and what follows!
 fmt = "<BR>(times: user %.3g, sys %.3g, ch-user %.3g, ch-sys %.3g, real %.3g)"
 print fmt % tuple(map(operator.sub, t2, t1))