]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99277: remove older version of `get_write_buffer_limits` (#99280)
authorCarlo <34414634+csuriano23@users.noreply.github.com>
Thu, 10 Nov 2022 16:07:17 +0000 (17:07 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 16:07:17 +0000 (08:07 -0800)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Lib/asyncio/sslproto.py
Misc/NEWS.d/next/Library/2022-11-09-08-40-52.gh-issue-99277.J1P44O.rst [new file with mode: 0644]

index 5cb5cd35883f07dbbd116cedbb62f0a7c20a7255..bbf9cad6bc7f86e30fcd73f3b3cecf4d13386f0e 100644 (file)
@@ -199,12 +199,6 @@ class _SSLProtocolTransport(transports._FlowControlMixin,
         """Return the current size of the read buffer."""
         return self._ssl_protocol._get_read_buffer_size()
 
-    def get_write_buffer_limits(self):
-        """Get the high and low watermarks for write flow control.
-        Return a tuple (low, high) where low and high are
-        positive number of bytes."""
-        return self._ssl_protocol._transport.get_write_buffer_limits()
-
     @property
     def _protocol_paused(self):
         # Required for sendfile fallback pause_writing/resume_writing logic
diff --git a/Misc/NEWS.d/next/Library/2022-11-09-08-40-52.gh-issue-99277.J1P44O.rst b/Misc/NEWS.d/next/Library/2022-11-09-08-40-52.gh-issue-99277.J1P44O.rst
new file mode 100644 (file)
index 0000000..f0a5390
--- /dev/null
@@ -0,0 +1 @@
+Remove older version of ``_SSLProtocolTransport.get_write_buffer_limits`` in :mod:`!asyncio.sslproto`