From ff6c07729211fb98431a2793e074d07a21e0650a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 8 Jun 2018 10:32:06 +0200 Subject: bpo-33694: Fix typo in helper function name (GH-7522) _feed_data_to_bufferred_proto() renamed to _feed_data_to_buffered_proto() ("bufferred" => "buffered"). Typo spotted by Nathaniel J. Smith. --- Lib/asyncio/proactor_events.py | 2 +- Lib/asyncio/protocols.py | 2 +- Lib/asyncio/sslproto.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/asyncio') diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py index d9cfdff02c..6d230a2d17 100644 --- a/Lib/asyncio/proactor_events.py +++ b/Lib/asyncio/proactor_events.py @@ -234,7 +234,7 @@ class _ProactorReadPipeTransport(_ProactorBasePipeTransport, if isinstance(self._protocol, protocols.BufferedProtocol): try: - protocols._feed_data_to_bufferred_proto(self._protocol, data) + protocols._feed_data_to_buffered_proto(self._protocol, data) except Exception as exc: self._fatal_error(exc, 'Fatal error: protocol.buffer_updated() ' diff --git a/Lib/asyncio/protocols.py b/Lib/asyncio/protocols.py index 4d47da387c..a35ea822f3 100644 --- a/Lib/asyncio/protocols.py +++ b/Lib/asyncio/protocols.py @@ -191,7 +191,7 @@ class SubprocessProtocol(BaseProtocol): """Called when subprocess has exited.""" -def _feed_data_to_bufferred_proto(proto, data): +def _feed_data_to_buffered_proto(proto, data): data_len = len(data) while data_len: buf = proto.get_buffer(data_len) diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 5578c6f818..12fdb0d1c5 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -535,7 +535,7 @@ class SSLProtocol(protocols.Protocol): if chunk: try: if self._app_protocol_is_buffer: - protocols._feed_data_to_bufferred_proto( + protocols._feed_data_to_buffered_proto( self._app_protocol, chunk) else: self._app_protocol.data_received(chunk) -- cgit v1.2.1