def export(self, filename, exporter=None):
        """
        Exports the data from this tree to the given filename.
        
        :param      filename | <str>
        """
        filename = nativestring(filename)
        if exporter is None:
            ext = os.path.splitext(filename)[1]
            exporter = self.exporter(ext)
        
        if exporter:
            return exporter.exportTree(self, filename)
        else:
            return False
def export ( self , filename , exporter = None ) : filename = nativestring ( filename ) if exporter is None : ext = os . path . splitext ( filename ) [ 1 ] exporter = self . exporter ( ext ) if exporter : return exporter . exportTree ( self , filename ) else : return False
Exports the data from this tree to the given filename.
        
        :param      filename | <str>