Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88c6bdf

Browse files
committed
posix->os.
1 parent 8430c58 commit 88c6bdf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/faqwiz/faqw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# lives, and change the value for SRCDIR to where your faqwiz.py
1616
# module lives. The faqconf.py and faqcust.py files live there, too.
1717

18-
import posix
19-
t1 = posix.times()
18+
import os
19+
t1 = os.times() # If this doesn't work, just get rid of the timing code!
2020
try:
2121
FAQDIR = "/usr/people/guido/python/FAQ"
2222
SRCDIR = "/usr/people/guido/python/src/Tools/faqwiz"
@@ -31,6 +31,6 @@
3131
print
3232
import cgi
3333
cgi.print_exception(t, v, tb)
34-
t2 = posix.times()
34+
t2 = os.times() # If this doesn't work, get rid of this and what follows!
3535
fmt = "<BR>(times: user %.3g, sys %.3g, ch-user %.3g, ch-sys %.3g, real %.3g)"
3636
print fmt % tuple(map(operator.sub, t2, t1))

0 commit comments

Comments
 (0)