def _check_pool_attr(self, attr, req_attr=None):
if req_attr is None:<EOL><INDENT>req_attr = []<EOL><DEDENT>self._check_attr(attr, req_attr, _pool_attrs)<EOL>if attr.get('<STR_LIT>') is not None:<EOL><INDENT>try:<EOL><INDENT>attr['<STR_LIT>'] =int(attr['<STR_LIT>'])<EOL>if (attr['<STR_LIT>'] > <NUM_LIT:32> or<EOL>attr['<STR_LIT>'] < <NUM_LIT:1>):<EOL><INDENT>raise ValueError()<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>raise NipapValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>if attr.get('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>attr['<STR_LIT>'] =int(attr['<STR_LIT>'])<EOL>if (attr['<STR_LIT>'] > <NUM_LIT> or<EOL>attr['<STR_LIT>'] < <NUM_LIT:1>):<EOL><INDENT>raise ValueError()<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>raise NipapValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>
Check pool attributes.