From 740a4a52d9b5d00dc0beede63cc21b55e563d9c9 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 24 Sep 2016 13:23:49 +0200 Subject: midi: Simplify some boolean tests. --- decoders/midi/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders') diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py index a631473..8c2e4ed 100644 --- a/decoders/midi/pd.py +++ b/decoders/midi/pd.py @@ -66,8 +66,8 @@ class Decoder(srd.Decoder): return 'assuming ' + percussion_notes.get(note, 'undefined') def check_for_garbage_flush(self, is_flushed): - if is_flushed == True: - if self.explicit_status_byte == True: + if is_flushed: + if self.explicit_status_byte: self.cmd.insert(0, self.status_byte) self.handle_garbage_msg(None) -- cgit v1.2.3-70-g09d2