diff options
author | Daniel Lange <DLange@git.local> | 2020-10-06 13:41:59 +0200 |
---|---|---|
committer | alezakos <electrovesta@gmail.com> | 2020-10-18 22:22:35 +0300 |
commit | 4a1b2d3fb2dfe8ba337a45efb5d7f6ac5362f20e (patch) | |
tree | 9e0151f6ea82889f293bcae030344cec68068e03 | |
parent | 61c89e9263fe1d91bc0d4c4088b5b7175d12c576 (diff) | |
download | supybot_github-4a1b2d3fb2dfe8ba337a45efb5d7f6ac5362f20e.tar.gz supybot_github-4a1b2d3fb2dfe8ba337a45efb5d7f6ac5362f20e.tar.bz2 supybot_github-4a1b2d3fb2dfe8ba337a45efb5d7f6ac5362f20e.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): |