def from_text_list(rdclass, rdtype, ttl, text_rdatas):
 if isinstance(rdclass, (str, unicode)):
  rdclass = dns.rdataclass.from_text(rdclass)
 if isinstance(rdtype, (str, unicode)):
  rdtype = dns.rdatatype.from_text(rdtype)
 r = Rdataset(rdclass, rdtype)
 r.update_ttl(ttl)
 for t in text_rdatas:
  rd = dns.rdata.from_text(r.rdclass, r.rdtype, t)
  r.add(rd)
 return r

def from_text_list ( rdclass , rdtype , ttl , text_rdatas ) : if isinstance ( rdclass , ( str , unicode ) ) : rdclass = dns . rdataclass . from_text ( rdclass ) if isinstance ( rdtype , ( str , unicode ) ) : rdtype = dns . rdatatype . from_text ( rdtype ) r = Rdataset ( rdclass , rdtype ) r . update_ttl ( ttl ) for t in text_rdatas : rd = dns . rdata . from_text ( r . rdclass , r . rdtype , t ) r . add ( rd ) return r
create an rdataset with the specified class .