mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Replace IOError with OSError (#16715)
This commit is contained in:
parent
16bdd4120d
commit
f7a17b48d7
121 changed files with 381 additions and 386 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue