def check_valid_returncode(self, valid : Container[int] = (
0, None, signal.SIGPIPE, signal.SIGPIPE + 128)):
"""Check that the returncodes does not have a value associated with
an error state.
Raises:
IOError if :attribute:`returncode` is associated with an error
state.
"""
if self.returncode not in valid:
raise IOError("Process existed with return code {}".format(
self.returncode))
# Methods
评论列表
文章目录