(self,prefix="",sort=False)
return prefix + ("\n" + prefix).join(sections)
Formatted 'repr'-style representation of record
            (optionally with prefix and/or sorted RRs)
Formatted 'repr'-style representation of record
            (optionally with prefix and/or sorted RRs)
Formatted repr - style representation of record ( optionally with prefix and / or sorted RRs )
def format(self,prefix="",sort=False):
        """
            Formatted 'repr'-style representation of record
            (optionally with prefix and/or sorted RRs)
        """
        s = sorted if sort else lambda x:x
        sections = [ repr(self.header) ]
        sections.extend(s([repr(q) for q in self.questions]))
        sections.extend(s([repr(rr) for rr in self.rr]))
        sections.extend(s([repr(rr) for rr in self.auth]))
        sections.extend(s([repr(rr) for rr in self.ar]))
        return prefix + ("\n" + prefix).join(sections)
def format ( self , prefix = "" , sort = False ) : s = sorted if sort else lambda x : x sections = [ repr ( self . header ) ] sections . extend ( s ( [ repr ( q ) for q in self . questions ] ) ) sections . extend ( s ( [ repr ( rr ) for rr in self . rr ] ) ) sections . extend ( s ( [ repr ( rr ) for rr in self . auth ] ) ) sections . extend ( s ( [ repr ( rr ) for rr in self . ar ] ) ) return prefix + ( "\n" + prefix ) . join ( sections )