From 385f57df2eea509e984942841bfcc9df716de9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rmet=20Yiltiz?= Date: Mon, 31 Aug 2020 15:08:55 -0400 Subject: [PATCH] Syntax warning on literal semantics /usr/share/responder/tools/RunFingerPackets.py:14: SyntaxWarning: "is" with a literal. Did you mean "=="? if PY2OR3 is "PY2": --- tools/RunFingerPackets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/RunFingerPackets.py b/tools/RunFingerPackets.py index e5ce645..d6ab48b 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: