Issue #16706: get rid of os.error

This commit is contained in:
Andrew Svetlov 2012-12-18 22:02:39 +02:00
parent a191959849
commit ad28c7f9da
33 changed files with 4089 additions and 4123 deletions

View file

@ -532,7 +532,7 @@ class ForkingMixIn:
# children.
try:
pid, status = os.waitpid(0, 0)
except os.error:
except OSError:
pid = None
if pid not in self.active_children: continue
self.active_children.remove(pid)
@ -545,7 +545,7 @@ class ForkingMixIn:
for child in self.active_children:
try:
pid, status = os.waitpid(child, os.WNOHANG)
except os.error:
except OSError:
pid = None
if not pid: continue
try: