@@ -143,7 +143,7 @@ def run(self):
143143 message from the buffer of bytes. When a message is parsed, passes it
144144 off to the callback if one is set.
145145 """
146- message_buffer = b ""
146+ message_buffer = ""
147147 while self .running :
148148 try :
149149 message_buffer += self .source .read_logs ()
@@ -158,7 +158,7 @@ def run(self):
158158 while True :
159159 if "\x00 " not in message_buffer :
160160 break
161- record , _ , remainder = message_buffer .partition (b "\x00 " )
161+ record , _ , remainder = message_buffer .partition ("\x00 " )
162162 self .record (record )
163163 message_buffer = remainder
164164
@@ -191,6 +191,7 @@ def run(self):
191191 off to the callback if one is set.
192192 """
193193 while self .running :
194+ payload = ""
194195 try :
195196 payload = self .read ()
196197 except DataSourceError as e :
@@ -223,7 +224,7 @@ def run(self):
223224 self ._receive_command_response (message )
224225
225226 def _receive_command_response (self , message ):
226- # TODO the controller/source are getting a litlte mixed up since the
227+ # TODO the controller/source are getting a little mixed up since the
227228 # controller now needs to receive responses from the soruce side, maybe
228229 # just mix them again. the only exception to being both is a trace
229230 # source, and we can just leave the controller methods on that
0 commit comments