def dataReceived(self, data):
		self.stompBuffer.appendData(data.replace('\0', '\0\n'))
		
		while True:
			msg = self.stompBuffer.getOneMessage()
			
			if self.stompBuffer.buffer.startswith('\n'):
				self.stompBuffer.buffer = self.stompBuffer.buffer[1:]
			
			if msg is None or (not msg['headers'] and not msg['body'] and not msg['cmd']):
				break
			
			msg['cmd'] = msg['cmd'].lower()
			getattr(self, self.state % 'read_%s')(**msg)
dataset/ETHPy150Open p2k/pygowave/pygowave_server/stomp_server.py/StompServerProtocol.dataReceived/swapped operands of `%`