diff options
author | Fred Drake <fdrake@acm.org> | 1999-10-18 13:43:44 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-10-18 13:43:44 (GMT) |
commit | 14bb71d5535747be9b3a10ff1cf7be9e15001d90 (patch) | |
tree | 214145cdec14f2904c431adc3c63128b0dc37af6 /Lib/CGIHTTPServer.py | |
parent | 40e84db0f4ca06cfd40f6eebe2f9907797c8a67b (diff) | |
download | cpython-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.py | 2 |
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()" |