def fromfile(cls, path):
        """
        Creates a METS by parsing a file.

        :param str path: Path to a METS document.
        """
        parser = etree.XMLParser(remove_blank_text=True)

        return cls.fromtree(etree.parse(path, parser=parser))
def fromfile ( cls , path ) : parser = etree . XMLParser ( remove_blank_text = True ) return cls . fromtree ( etree . parse ( path , parser = parser ) )
Creates a METS by parsing a file.

        :param str path: Path to a METS document.