aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-10-06 13:41:59 +0200
committerDaniel Lange <DLange@git.local>2020-10-06 13:41:59 +0200
commitcb1beed1975207bb9d815341c6efe66854db29ea (patch)
tree652791db729d921ed1b59d84481f55af4cb7c314
parenta911bec64c178df0cf2c57720d5f4900eb8aa314 (diff)
downloadsupybot_github-cb1beed1975207bb9d815341c6efe66854db29ea.tar.gz
supybot_github-cb1beed1975207bb9d815341c6efe66854db29ea.tar.bz2
supybot_github-cb1beed1975207bb9d815341c6efe66854db29ea.zip
Fix python 3.8 SyntaxWarning is -> ==
-rw-r--r--local/utility.py2
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):

© 2014-2024 Faster IT GmbH | imprint | privacy policy