diff options
| author | Bob Halley <halley@dnspython.org> | 2007-05-25 01:07:58 +0000 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2007-05-25 01:07:58 +0000 |
| commit | 3797fefcec2237eb58e9fae50876495793e9b218 (patch) | |
| tree | dcdd2a46dca6c9a79c0c0350d26232895c7f9abc | |
| parent | e646a4c16078e9db196bbded01a5f3dccaac2d4c (diff) | |
| download | dnspython-3797fefcec2237eb58e9fae50876495793e9b218.tar.gz | |
fix comparison cut-and-paste error
| -rw-r--r-- | dns/rdtypes/IN/NAPTR.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/rdtypes/IN/NAPTR.py b/dns/rdtypes/IN/NAPTR.py index 8df58f0..d7ddb50 100644 --- a/dns/rdtypes/IN/NAPTR.py +++ b/dns/rdtypes/IN/NAPTR.py @@ -119,7 +119,7 @@ class NAPTR(dns.rdata.Rdata): def _cmp(self, other): sp = struct.pack("!HH", self.order, self.preference) - op = struct.pack("!HH", other.order, self.preference) + op = struct.pack("!HH", other.order, order.preference) v = cmp(sp, op) if v == 0: v = cmp(self.flags, other.flags) |
