def geometry_string(s):
    try:
        x_string, y_string = s.split('x')
        geometry = (int(x_string), int(y_string))
    except ValueError:
        msg = "%s is not a valid geometry specification" %s
        raise argparse.ArgumentTypeError(msg)
    return geometry
Remove a prefix.
dataset/ETHPy150Open ASPP/pelita/tkviewer.py/geometry_string--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/nipap-www/nipapwww/controllers/xhr.py/XhrController.remove_prefix