def _str_to_int(val, optname):
    try:
        return int(val)
    except __HOLE__:
        raise ValueError('"%s" option expected an int' % optname)
dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/Legacy/epydoc-3.0.1/epydoc/cli.py/_str_to_int