Unverified Commit c714f4d5 authored by Peter V. Saveliev's avatar Peter V. Saveliev Committed by GitHub

conntrack: merge pull request #696 from inemajo/conntrack_remove_useless_super

conntrack: Remove useless super() on Conntrack

Bug-Url: https://github.com/svinota/pyroute2/pull/696
parents ac6b91ee 61bbf0ae
...@@ -162,8 +162,8 @@ class Conntrack(NFCTSocket): ...@@ -162,8 +162,8 @@ class Conntrack(NFCTSocket):
daddr='8.8.8.8')): daddr='8.8.8.8')):
print("This entry is icmp to 8.8.8.8: {}".format(entry)) print("This entry is icmp to 8.8.8.8: {}".format(entry))
""" """
for ndmsg in super(Conntrack, self).dump(mark=mark, for ndmsg in self.dump(mark=mark, mark_mask=mark_mask):
mark_mask=mark_mask):
if tuple_orig is not None and not tuple_orig.nla_eq( if tuple_orig is not None and not tuple_orig.nla_eq(
ndmsg['nfgen_family'], ndmsg.get_attr('CTA_TUPLE_ORIG')): ndmsg['nfgen_family'], ndmsg.get_attr('CTA_TUPLE_ORIG')):
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment