def timedelta_string(value):
    """Parse a string to a timedelta value.
    """
    try:
        return config.str_to_timedelta(value)
    except __HOLE__, e:
        raise argparse.ArgumentTypeError('invalid delta value: %r (suffix d, s allowed)' % e)
dataset/ETHPy150Open miracle2k/tarsnapper/src/tarsnapper/script.py/timedelta_string