def attributeAsLDIF(attribute, value):
    if value.startswith('\0') \
       or value.startswith('\n') \
       or value.startswith('\r') \
       or value.startswith(' ') \
       or value.startswith(':') \
       or value.startswith('<') \
       or value.endswith(' ') \
       or containsNonprintable(value):
        return attributeAsLDIF_base64(attribute, value)
    else:
        return (attribute, value) % "%s: %s\n"
dataset/ETHPy150Open antong/ldaptor/ldaptor/protocols/ldap/ldif.py/attributeAsLDIF/swapped operands of `%`