If the 'zone' parameter to the Update constructor was a name, we erroneously
authorBob Halley <halley@dnspython.org>
Fri, 3 Mar 2006 01:04:52 +0000 (01:04 +0000)
committerBob Halley <halley@dnspython.org>
Fri, 3 Mar 2006 01:04:52 +0000 (01:04 +0000)
tried to invoke a method named 'copy'.  Names are immutable, there's no
need to copy anyway.

dns/update.py

index c513647a9247309e168a907cc2dcca705ca09bd7..d1fbe81a0e70b8a844423706ed68e13cb8a3fe2a 100644 (file)
@@ -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)