git.samba.org
/
third_party
/
dnspython
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c437c6b
)
If the 'zone' parameter to the Update constructor was a name, we erroneously
author
Bob Halley
<halley@dnspython.org>
Fri, 3 Mar 2006 01:04:52 +0000
(
01:04
+0000)
committer
Bob 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
patch
|
blob
|
history
diff --git
a/dns/update.py
b/dns/update.py
index c513647a9247309e168a907cc2dcca705ca09bd7..d1fbe81a0e70b8a844423706ed68e13cb8a3fe2a 100644
(file)
--- 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)