def guard_for_format(arg):
    "Replace { and } with {{ and }}\n\n    To be used in cases if arg is not expected to have provided\n    by user .format() placeholders, but 'arg' might become a part\n    of a composite passed to .format(), e.g. via 'Run'\n    "
    return arg.replace('{', '{{').replace('}', '}}')
Replace { and } with {{ and }}

To be used in cases if arg is not expected to have provided
by user .format() placeholders, but 'arg' might become a part
of a composite passed to .format(), e.g. via 'Run'
def guard_for_format(arg):
    "Replace { and } with {{ and }}\n\n    To be used in cases if arg is not expected to have provided\n    by user .format() placeholders, but 'arg' might become a part\n    of a composite passed to .format(), e.g. via 'Run'\n    "
    return arg.replace('{', '{{').replace('}', '}}')