From cb1beed1975207bb9d815341c6efe66854db29ea Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Tue, 6 Oct 2020 13:41:59 +0200 Subject: Fix python 3.8 SyntaxWarning is -> == --- local/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3