From: Fred Drake Date: Mon, 18 Oct 1999 13:43:44 +0000 (+0000) Subject: os.fork raises AttributeError, not NameError, if fork() isn't X-Git-Tag: v1.6a1~821 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14bb71d5535747be9b3a10ff1cf7be9e15001d90;p=python os.fork raises AttributeError, not NameError, if fork() isn't supported. Pointed out by Moshe Zadka . --- diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index dc1739288a..fa30cbddda 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()"