pylint: fix R1701 consider-merging-isinstance

parent e4a4fb39
...@@ -337,7 +337,7 @@ def check_for_icmp(): ...@@ -337,7 +337,7 @@ def check_for_icmp():
ip = dpkt.ip.IP(packet) ip = dpkt.ip.IP(packet)
except dpkt.dpkt.UnpackError: except dpkt.dpkt.UnpackError:
ip = dpkt.ip6.IP6(packet) ip = dpkt.ip6.IP6(packet)
if isinstance(, dpkt.icmp.ICMP) or isinstance(, dpkt.icmp6.ICMP6): if isinstance(, (dpkt.icmp.ICMP, dpkt.icmp6.ICMP6)):
return True return True
return False return False
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