From c972aeb97669eb41972feb028d1593186ea7cc23 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 3 Mar 2006 01:04:52 +0000 Subject: [PATCH] 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. --- dns/update.py | 2 -- 1 file changed, 2 deletions(-) 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) -- 2.47.3