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-18 12:17:01 +0200
commitf164d6858f7a15f73676974b2f6ccef47f1ce070 (patch)
tree9e0151f6ea82889f293bcae030344cec68068e03
parent5ff221e197a69e2e79a3fcc950584d6563051b80 (diff)
downloadsupybot_github-f164d6858f7a15f73676974b2f6ccef47f1ce070.tar.gz
supybot_github-f164d6858f7a15f73676974b2f6ccef47f1ce070.tar.bz2
supybot_github-f164d6858f7a15f73676974b2f6ccef47f1ce070.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