From: Bob Halley Date: Fri, 3 Mar 2006 01:04:52 +0000 (+0000) Subject: If the 'zone' parameter to the Update constructor was a name, we erroneously X-Git-Tag: v1.4.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c972aeb97669eb41972feb028d1593186ea7cc23;p=thirdparty%2Fdnspython.git If the 'zone' parameter to the Update constructor was a name, we erroneously tried to invoke a method named 'copy'. Names are immutable, there's no need to copy anyway. --- diff --git a/dns/update.py b/dns/update.py index c513647a..d1fbe81a 100644 --- a/dns/update.py +++ b/dns/update.py @@ -46,8 +46,6 @@ class Update(dns.message.Message): self.flags |= dns.opcode.to_flags(dns.opcode.UPDATE) if isinstance(zone, (str, unicode)): zone = dns.name.from_text(zone) - else: - zone = zone.copy() self.origin = zone if isinstance(rdclass, str): rdclass = dns.rdataclass.from_text(rdclass)