Skip to content

Commit

Permalink
Merge pull request #1635 from mhmdanas/main
Browse files Browse the repository at this point in the history
Fix '"is not" with a literal' warning
  • Loading branch information
sammdot committed Sep 27, 2023
2 parents 97cb4ed + 0799228 commit 15cb725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plover/oslayer/osx/keyboardcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 15cb725

Please sign in to comment.