From 14bb71d5535747be9b3a10ff1cf7be9e15001d90 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 18 Oct 1999 13:43:44 +0000 Subject: [PATCH] os.fork raises AttributeError, not NameError, if fork() isn't supported. Pointed out by Moshe Zadka . --- Lib/CGIHTTPServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index dc1739288ae..fa30cbdddae 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -21,7 +21,7 @@ try: os.fork -except NameError: +except AttributeError: raise SystemError, __name__ + " requires os.fork()"