X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=plomrogue%2Fio_tcp.py;h=93fa68e7f604d7f50887a91c0673104f3731e30c;hb=2a7e3040d58b1d7dcddf64378bfd1abd8d7ded7c;hp=09b9db1bbf3d0f47539a2c4aaea27aacd9c0c18c;hpb=540aec0e9bf55d0452cffda4b34e1995d3724abf;p=plomrogue2
diff --git a/plomrogue/io_tcp.py b/plomrogue/io_tcp.py
index 09b9db1..93fa68e 100644
--- a/plomrogue/io_tcp.py
+++ b/plomrogue/io_tcp.py
@@ -15,7 +15,7 @@ class PlomSocket:
def send(self, message, silent_connection_break=False):
"""Send via self.socket, encoded/delimited as way recv() expects.
- In detail, all \ and $ in message are escaped with prefixed \,
+ In detail, all \\ and $ in message are escaped with prefixed \\,
and an unescaped $ is appended as a message delimiter. Then,
socket.send() is called as often as necessary to ensure
message is sent fully, as socket.send() due to buffering may
@@ -60,7 +60,7 @@ class PlomSocket:
In detail, socket.recv() is looped over for sequences of bytes
that can be decoded as a Unicode string delimited by an
- unescaped $, with \ and $ escapable by \. If a sequence of
+ unescaped $, with \\ and $ escapable by \\. If a sequence of
characters that ends in an unescaped $ cannot be decoded as
Unicode, None is returned as its representation. Stop once
socket.recv() returns nothing.