Oops again. EINTR is in errno, not signal.

This commit is contained in:
Jeffrey Yasskin 2008-04-04 16:48:19 +00:00
parent e1929d5133
commit e71d8124c2
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def ignoring_eintr(__func, *args, **kwargs):
try:
return __func(*args, **kwargs)
except EnvironmentError as e:
if e.errno != signal.EINTR:
if e.errno != errno.EINTR:
raise
return None