Use equality operator for comparison to integer value.

This commit is contained in:
Ben Finney 2022-12-19 09:48:10 +11:00
parent a88f298e98
commit 4bed400c7d

View file

@ -94,7 +94,7 @@ def ejabberd_in():
input_length = sys.stdin.buffer.read(2) 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!") logging.debug("ejabberd sent us wrong things!")
raise EjabberdInputError('Wrong input from ejabberd!') raise EjabberdInputError('Wrong input from ejabberd!')