From 07992288d614cae4eb25640b714288371a5d5013 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Wed, 27 Sep 2023 17:08:29 +0100 Subject: [PATCH] Fix '"is not" with a literal' warning --- plover/oslayer/osx/keyboardcontrol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plover/oslayer/osx/keyboardcontrol.py b/plover/oslayer/osx/keyboardcontrol.py index f230ffb92..17ff61400 100644 --- a/plover/oslayer/osx/keyboardcontrol.py +++ b/plover/oslayer/osx/keyboardcontrol.py @@ -330,7 +330,7 @@ def send_string(self, string): # and add the sequence to the key plan when called as a function. def apply_raw(): if hasattr(apply_raw, 'sequence') \ - and len(apply_raw.sequence) is not 0: + and len(apply_raw.sequence) != 0: apply_raw.sequence.extend(apply_raw.release_modifiers) key_plan.append((self.RAW_PRESS, apply_raw.sequence)) apply_raw.sequence = []