mirror of https://github.com/python/cpython.git
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
|
@ -21,7 +21,7 @@
|
|||
|
||||
try:
|
||||
os.fork
|
||||
except NameError:
|
||||
except AttributeError:
|
||||
raise SystemError, __name__ + " requires os.fork()"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue