summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-10-18 13:43:44 (GMT)
committerFred Drake <fdrake@acm.org>1999-10-18 13:43:44 (GMT)
commit14bb71d5535747be9b3a10ff1cf7be9e15001d90 (patch)
tree214145cdec14f2904c431adc3c63128b0dc37af6 /Lib/CGIHTTPServer.py
parent40e84db0f4ca06cfd40f6eebe2f9907797c8a67b (diff)
downloadcpython-14bb71d5535747be9b3a10ff1cf7be9e15001d90.zip
cpython-14bb71d5535747be9b3a10ff1cf7be9e15001d90.tar.gz
cpython-14bb71d5535747be9b3a10ff1cf7be9e15001d90.tar.bz2
os.fork raises AttributeError, not NameError, if fork() isn't
supported. Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index dc17392..fa30cbd 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -21,7 +21,7 @@ import SimpleHTTPServer
try:
os.fork
-except NameError:
+except AttributeError:
raise SystemError, __name__ + " requires os.fork()"