def from_file(cls, filename):
        """Initialize datasource from file (.tds ot .tdsx)"""

        dsxml = xml_open(filename, 'datasource').getroot()
        return cls(dsxml, filename)
def from_file ( cls , filename ) : dsxml = xml_open ( filename , 'datasource' ) . getroot ( ) return cls ( dsxml , filename )
Initialize datasource from file (.tds ot .tdsx)