def guess_contains_expat(lines):
    """Tries to determine if a file includes expat
    """
    for line in lines:
        if (
            'reserved prefix (xml) must not be undeclared or bound to another namespace name'
             in line):
            return 1
        if 'cannot change setting once parsing has begun' in line:
            return 1
        if 'requested feature requires XML_DTD support in Expat' in line:
            return 1
    return 0
