summaryrefslogtreecommitdiff
path: root/contrib/python/ldns_packet.i
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/ldns_packet.i')
-rw-r--r--contrib/python/ldns_packet.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/python/ldns_packet.i b/contrib/python/ldns_packet.i
index a1ad6b7c8214..9316479f13b3 100644
--- a/contrib/python/ldns_packet.i
+++ b/contrib/python/ldns_packet.i
@@ -217,7 +217,7 @@ This simple example instances a resolver in order to resolve NS for nic.cz.
def opcode2str(self):
"""Converts a packet opcode to its mnemonic and returns that as an allocated null-terminated string."""
- return _ldns.ldns_pkt_opcode2str(sefl.get_opcode())
+ return _ldns.ldns_pkt_opcode2str(self.get_opcode())
def rcode2str(self):
"""Converts a packet rcode to its mnemonic and returns that as an allocated null-terminated string."""