From 4bed400c7df6a98a8695fa3f70119aff17815e90 Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Mon, 19 Dec 2022 09:48:10 +1100 Subject: [PATCH] Use equality operator for comparison to integer value. --- auth-mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-mastodon.py b/auth-mastodon.py index 798ba80..1e5a058 100644 --- a/auth-mastodon.py +++ b/auth-mastodon.py @@ -94,7 +94,7 @@ def ejabberd_in(): input_length = sys.stdin.buffer.read(2) - if len(input_length) is not 2: + if len(input_length) != 2: logging.debug("ejabberd sent us wrong things!") raise EjabberdInputError('Wrong input from ejabberd!')