def getMod(attr, s):
    val = str(s).strip()
    if val.find('\n') > -1:
        val = base64.b64encode(val)
        return "%s\n" % tab_attr(attr, val, True)
    elif len(val) > (78 - len(attr)):
        return "%s\n" % tab_attr(attr, val)
    else:
        return "%s: %s\n" % (attr, val)
dataset/ETHPy150Open GluuFederation/community-edition-setup/static/scripts/import23.py/getMod/original