diff options
author | Rob Austein <sra@hactrn.net> | 2007-10-31 21:08:57 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-10-31 21:08:57 +0000 |
commit | 2ba1d92af9ae2f28cfffc70d871ff6ba95a04eb1 (patch) | |
tree | bde6b629f6e19323b6e02da98615a4fd3edfca16 /scripts/rpki/up_down.py | |
parent | f1bfcc793e30c2502d73d83966337c3bcfa07c56 (diff) |
Shaking out dumb little errors
svn path=/scripts/rpki/left_right.py; revision=1219
Diffstat (limited to 'scripts/rpki/up_down.py')
-rw-r--r-- | scripts/rpki/up_down.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/rpki/up_down.py b/scripts/rpki/up_down.py index 268134ca..7a9f0d7e 100644 --- a/scripts/rpki/up_down.py +++ b/scripts/rpki/up_down.py @@ -192,8 +192,7 @@ class list_pdu(base_elt): @classmethod def query(cls, gctx, parent): """Send a "list" query to parent.""" - self = cls() - return parent.query_up_down(gctx, self) + return parent.query_up_down(gctx, cls()) class class_response_syntax(base_elt): """Syntax for Up-Down protocol "list_response" and "issue_response" PDUs.""" @@ -477,7 +476,7 @@ class message_pdu(base_elt): @classmethod def make_query(cls, payload, sender = "tweedledee", recipient = "tweedledum"): """Construct one message PDU.""" - assert not self.type2name[type(payload)].endswith("_response") + assert not cls.type2name[type(payload)].endswith("_response") self = cls() self.sender = sender self.recipient = recipient |