Get rig of EnvironmentError (#16705)

This commit is contained in:
Andrew Svetlov 2012-12-17 23:35:18 +02:00
parent 6eda46de99
commit 3438fa496d
16 changed files with 34 additions and 35 deletions

View file

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