mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Fixed bug: Split RPC message into two parts instead of three
This commit is contained in:
parent
9aa97e835d
commit
55956c9361
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ class CommandProtocol:
|
||||||
def _decode_msg(self, msg):
|
def _decode_msg(self, msg):
|
||||||
seqno = self.decode_seqno(msg[:self.SEQNO_ENC_LEN])
|
seqno = self.decode_seqno(msg[:self.SEQNO_ENC_LEN])
|
||||||
msg = msg[self.SEQNO_ENC_LEN:]
|
msg = msg[self.SEQNO_ENC_LEN:]
|
||||||
parts = msg.split(" ", 2)
|
parts = msg.split(" ", 1)
|
||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
cmd = msg
|
cmd = msg
|
||||||
arg = ''
|
arg = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue