]> granicus.if.org Git - python/commitdiff
os.fork raises AttributeError, not NameError, if fork() isn't
authorFred Drake <fdrake@acm.org>
Mon, 18 Oct 1999 13:43:44 +0000 (13:43 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 18 Oct 1999 13:43:44 +0000 (13:43 +0000)
supported.  Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.

Lib/CGIHTTPServer.py

index dc1739288ae5820f22ba3ff7e3a87aa96e094a02..fa30cbdddae25c732b5c196ce4ac1592f947b2a4 100644 (file)
@@ -21,7 +21,7 @@ import SimpleHTTPServer
 
 try:
     os.fork
-except NameError:
+except AttributeError:
     raise SystemError, __name__ + " requires os.fork()"