mirror of
https://github.com/python/cpython.git
synced 2025-09-02 23:18:25 +00:00
os.fork raises AttributeError, not NameError, if fork() isn't
supported. Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.
This commit is contained in:
parent
40e84db0f4
commit
14bb71d553
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ import SimpleHTTPServer
|
|||
|
||||
try:
|
||||
os.fork
|
||||
except NameError:
|
||||
except AttributeError:
|
||||
raise SystemError, __name__ + " requires os.fork()"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue