def Convert2PathCoordNum(text):
    #convert to path string if possible
    if REO_PathNode.match(text):
        return (text)

    try:
        return (Convert2CoordNum(text))
    except ValueError:
        raise ValueError("Expected BoolCoordNum got '{0}'".format(text))

    return None
Decorators: keep_messages should not avoid the removal of flash-scoped values.
dataset/ETHPy150Open ioflo/ioflo/ioflo/base/building.py/Convert2PathCoordNum--crossover with--dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/tests/decorators.py/KeepMessagesDecoratorTestCase.test_decorator_with_invalid_arg