mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +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:
|
try:
|
||||||
os.fork
|
os.fork
|
||||||
except NameError:
|
except AttributeError:
|
||||||
raise SystemError, __name__ + " requires os.fork()"
|
raise SystemError, __name__ + " requires os.fork()"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue