mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-22 06:13:39 -07:00
Syntax warning on literal semantics
/usr/share/responder/tools/RunFingerPackets.py:14: SyntaxWarning: "is" with a literal. Did you mean "=="? if PY2OR3 is "PY2":
This commit is contained in:
parent
42a7e3b75c
commit
385f57df2e
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ else:
|
|||
|
||||
def StructWithLenPython2or3(endian,data):
|
||||
#Python2...
|
||||
if PY2OR3 is "PY2":
|
||||
if PY2OR3 == "PY2":
|
||||
return struct.pack(endian, data)
|
||||
#Python3...
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue