summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-03 22:27:04 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-03 22:27:04 (GMT)
commit88c6bdf042623a6fb617ad7771b0f199f7a2eca2 (patch)
treecf29b0e1cd8be9f1c401afff6f353a26cd501eb6 /Tools
parent8430c583da5eb966d1aecf882b6f7e6e31fcc26d (diff)
downloadcpython-88c6bdf042623a6fb617ad7771b0f199f7a2eca2.zip
cpython-88c6bdf042623a6fb617ad7771b0f199f7a2eca2.tar.gz
cpython-88c6bdf042623a6fb617ad7771b0f199f7a2eca2.tar.bz2
posix->os.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/faqwiz/faqw.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/faqwiz/faqw.py b/Tools/faqwiz/faqw.py
index 9babc7a..534fd9c 100755
--- a/Tools/faqwiz/faqw.py
+++ b/Tools/faqwiz/faqw.py
@@ -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))