aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Lib/asyncio/protocols.py
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/tools/python3/src/Lib/asyncio/protocols.py
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Lib/asyncio/protocols.py')
-rw-r--r--contrib/tools/python3/src/Lib/asyncio/protocols.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/tools/python3/src/Lib/asyncio/protocols.py b/contrib/tools/python3/src/Lib/asyncio/protocols.py
index 69fa43e8b6..d09f51f4f2 100644
--- a/contrib/tools/python3/src/Lib/asyncio/protocols.py
+++ b/contrib/tools/python3/src/Lib/asyncio/protocols.py
@@ -16,8 +16,8 @@ class BaseProtocol:
write-only transport like write pipe
"""
- __slots__ = ()
-
+ __slots__ = ()
+
def connection_made(self, transport):
"""Called when a connection is made.
@@ -89,8 +89,8 @@ class Protocol(BaseProtocol):
* CL: connection_lost()
"""
- __slots__ = ()
-
+ __slots__ = ()
+
def data_received(self, data):
"""Called when some data is received.
@@ -134,8 +134,8 @@ class BufferedProtocol(BaseProtocol):
* CL: connection_lost()
"""
- __slots__ = ()
-
+ __slots__ = ()
+
def get_buffer(self, sizehint):
"""Called to allocate a new receive buffer.
@@ -166,8 +166,8 @@ class BufferedProtocol(BaseProtocol):
class DatagramProtocol(BaseProtocol):
"""Interface for datagram protocol."""
- __slots__ = ()
-
+ __slots__ = ()
+
def datagram_received(self, data, addr):
"""Called when some datagram is received."""
@@ -181,8 +181,8 @@ class DatagramProtocol(BaseProtocol):
class SubprocessProtocol(BaseProtocol):
"""Interface for protocol for subprocess calls."""
- __slots__ = ()
-
+ __slots__ = ()
+
def pipe_data_received(self, fd, data):
"""Called when the subprocess writes data into stdout/stderr pipe.