diff options
author | Daniel Lange <DLange@git.local> | 2020-10-06 13:41:59 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-10-06 13:41:59 +0200 |
commit | cb1beed1975207bb9d815341c6efe66854db29ea (patch) | |
tree | 652791db729d921ed1b59d84481f55af4cb7c314 | |
parent | a911bec64c178df0cf2c57720d5f4900eb8aa314 (diff) | |
download | supybot_github-cb1beed1975207bb9d815341c6efe66854db29ea.tar.gz supybot_github-cb1beed1975207bb9d815341c6efe66854db29ea.tar.bz2 supybot_github-cb1beed1975207bb9d815341c6efe66854db29ea.zip |
Fix python 3.8 SyntaxWarning is -> ==
-rw-r--r-- | local/utility.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/local/utility.py b/local/utility.py index 391051d..7c34f2e 100644 --- a/local/utility.py +++ b/local/utility.py @@ -197,7 +197,7 @@ def randomString(length): def secureCompare(s1, s2): """Securely compare two strings""" - return sum(i != j for i, j in zip(s1, s2)) is 0 + return sum(i != j for i, j in zip(s1, s2)) == 0 def getChannelSecret(channel): |