mirror of https://github.com/python/cpython
Oops again. EINTR is in errno, not signal.
This commit is contained in:
parent
e1929d5133
commit
e71d8124c2
|
@ -32,7 +32,7 @@ def ignoring_eintr(__func, *args, **kwargs):
|
||||||
try:
|
try:
|
||||||
return __func(*args, **kwargs)
|
return __func(*args, **kwargs)
|
||||||
except EnvironmentError as e:
|
except EnvironmentError as e:
|
||||||
if e.errno != signal.EINTR:
|
if e.errno != errno.EINTR:
|
||||||
raise
|
raise
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue