Warning about literal

/usr/share/responder/settings.py:209: SyntaxWarning: "is not" with a literal. Did you mean "!="?
This commit is contained in:
Hörmet Yiltiz 2020-08-31 15:04:53 -04:00 committed by GitHub
commit 64ddaeccd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ class Settings:
if self.NumChal.lower() == 'random': if self.NumChal.lower() == 'random':
self.NumChal = "random" self.NumChal = "random"
if len(self.NumChal) is not 16 and not "random": if len(self.NumChal) != 16 and not "random":
print(utils.color("[!] The challenge must be exactly 16 chars long.\nExample: 1122334455667788", 1)) print(utils.color("[!] The challenge must be exactly 16 chars long.\nExample: 1122334455667788", 1))
sys.exit(-1) sys.exit(-1)