def _nonzero_int(integer_string, strict=False, cutoff=None):
if integer_string:<EOL><INDENT>ret = int(integer_string)<EOL><DEDENT>else:<EOL><INDENT>return integer_string<EOL><DEDENT>if ret == <NUM_LIT:0> and strict:<EOL><INDENT>raise ValueError()<EOL><DEDENT>if cutoff:<EOL><INDENT>return min(ret, cutoff)<EOL><DEDENT>return ret<EOL>
Cast a string to a strictly non-zero integer.