Replace IOError with OSError (#16715)

This commit is contained in:
Andrew Svetlov 2012-12-25 16:47:37 +02:00
parent 16bdd4120d
commit f7a17b48d7
121 changed files with 381 additions and 386 deletions

View file

@ -897,7 +897,7 @@ class Popen(object):
if input:
try:
self.stdin.write(input)
except IOError as e:
except OSError as e:
if e.errno != errno.EPIPE and e.errno != errno.EINVAL:
raise
self.stdin.close()
@ -1152,7 +1152,7 @@ class Popen(object):
if input is not None:
try:
self.stdin.write(input)
except IOError as e:
except OSError as e:
if e.errno != errno.EPIPE:
raise
self.stdin.close()