def containsNonprintable(s):
    for c in s:
        if ord(c) > 127 or c in ('\0', '\n', '\r'):
            return 1
    return 0
dataset/ETHPy150Open antong/ldaptor/ldaptor/protocols/ldap/ldif.py/containsNonprintable/original