summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2006-03-03 01:04:52 +0000
committerBob Halley <halley@dnspython.org>2006-03-03 01:04:52 +0000
commitc972aeb97669eb41972feb028d1593186ea7cc23 (patch)
treef21c105cbb14f3eb950faa5127e1bf70d3936b3b
parentc437c6badbabccb622a5f22aa4045fc9f41157a2 (diff)
downloaddnspython-c972aeb97669eb41972feb028d1593186ea7cc23.tar.gz
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.
-rw-r--r--dns/update.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/dns/update.py b/dns/update.py
index c513647..d1fbe81 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)