def _has_newline(line):
    """Used by has_bad_header to check for \\r or \\n"""
    if line and ('\r' in line or '\n' in line):
        return True
    return False
dataset/ETHPy150Open mattupstate/flask-mail/flask_mail.py/_has_newline/original