Skip to content

Commit db01ea7

Browse files
author
Kevin J Walters
committed
More pylint merriment. #3
1 parent 5d21aad commit db01ea7

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

adafruit_midi/midi_message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def _search_eom_status(cls, buf, eom_status, msgstartidx, msgendidxplusone, endi
146146
# Look for a status byte
147147
# Second rule of the MIDI club is status bytes have MSB set
148148
if buf[msgendidxplusone] & 0x80:
149+
# pylint disable=simplifiable-if-statement # n/a for this technique
149150
if buf[msgendidxplusone] == eom_status:
150151
good_termination = True
151152
else:

examples/midi_inoutdemo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Only importing what is used will save a little bit of memory
88

99
# pylint: disable=unused-import
10-
from adafruit_midi.timing_clock import TimingClock
10+
from adafruit_midi.timing_clock import TimingClock
1111
from adafruit_midi.channel_pressure import ChannelPressure
1212
from adafruit_midi.control_change import ControlChange
1313
from adafruit_midi.note_off import NoteOff

examples/midi_intest1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import time
2-
import random
32
import adafruit_midi
43

54
### 0 is MIDI channel 1

0 commit comments

Comments
 (0)