mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-30 11:38:55 -07:00
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.
This commit is contained in:
parent
f4c11111a7
commit
3d9147f36c
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,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