From 7d96fa95c466445fcd7c6f8439b8800f3a2994c1 Mon Sep 17 00:00:00 2001 From: HexPandaa <47880094+HexPandaa@users.noreply.github.com> Date: Fri, 2 Apr 2021 17:13:05 +0200 Subject: [PATCH] Compare strings with `==` instead of `is` `==` should be used when comparing values, `is` should be used to compare identities. Modern versions of Python throw a SyntaxWarning. --- tools/RunFingerPackets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/RunFingerPackets.py b/tools/RunFingerPackets.py index a112ef6..651849b 100644 --- a/tools/RunFingerPackets.py +++ b/tools/RunFingerPackets.py @@ -11,7 +11,7 @@ else: def StructWithLenPython2or3(endian,data): #Python2... - if PY2OR3 is "PY2": + if PY2OR3 == "PY2": return struct.pack(endian, data) #Python3... else: