File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ class MIDIMessage:
122
122
_statusandmask_to_class = []
123
123
124
124
def __init__ (self , * , channel = None ):
125
- ### TODO - can i kwargs this?????
126
125
self ._channel = channel # dealing with pylint inadequacy
127
126
self .channel = channel
128
127
@@ -136,12 +135,13 @@ def channel(self):
136
135
@channel .setter
137
136
def channel (self , channel ):
138
137
if channel is not None and not 0 <= channel <= 15 :
139
- raise "channel must be 0-15 or None"
138
+ raise "Channel must be 0-15 or None"
140
139
self ._channel = channel
141
140
142
141
@classmethod
143
142
def register_message_type (cls ):
144
143
"""Register a new message by its status value and mask.
144
+ This is called automagically at ``import`` time for each message.
145
145
"""
146
146
### These must be inserted with more specific masks first
147
147
insert_idx = len (MIDIMessage ._statusandmask_to_class )
You can’t perform that action at this time.
0 commit comments