""" Classes for merging several reports into one """ from __future__ import unicode_literals from typing import TYPE_CHECKING import os import xml.etree.ElementTree as ET from io import BytesIO from . import parser from .common import ReportContainer from .textutils import unicode_str if TYPE_CHECKING: from typing import List def has_xml_header(filepath: str): """ Return True if the first line of the file is ' + u"\n" + unicode_str(buf.getvalue())