Commit ef1b73b5 authored by Tomas Krizek's avatar Tomas Krizek

pylint: fix R1701 consider-merging-isinstance

parent e4a4fb39
......@@ -337,7 +337,7 @@ def check_for_icmp():
ip = dpkt.ip.IP(packet)
except dpkt.dpkt.UnpackError:
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 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