def _getBlock(self, block_spec):
if block_spec is None:<EOL><INDENT>return<EOL><DEDENT>if all(c in string.hexdigits for c in block_spec):<EOL><INDENT>block_spec = block_spec.upper()<EOL>ix = <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>ix = <NUM_LIT:2><EOL><DEDENT>for block in all_blocks:<EOL><INDENT>if block[ix] == block_spec:<EOL><INDENT>return block<EOL><DEDENT><DEDENT>raise ValueError('<STR_LIT>')<EOL>
Returns block info from given block start code point or block name.