Kaydet (Commit) 69832627 authored tarafından Aanand Prasad's avatar Aanand Prasad

Rename read_iter() to frames_iter()

This makes it more clearly high-level and distinct from the raw
data-reading functions
Signed-off-by: 's avatarAanand Prasad <aanand.prasad@gmail.com>
üst 9fb2caec
......@@ -29,7 +29,7 @@ from .ssladapter import ssladapter
from .tls import TLSConfig
from .transport import UnixAdapter
from .utils import utils, check_resource, update_headers, kwargs_from_env
from .utils.socket import read_iter
from .utils.socket import frames_iter
try:
from .transport import NpipeAdapter
except ImportError:
......@@ -310,9 +310,9 @@ class Client(
socket = self._get_raw_response_socket(response)
if stream:
return read_iter(socket)
return frames_iter(socket)
else:
return six.binary_type().join(read_iter(socket))
return six.binary_type().join(frames_iter(socket))
def _disable_socket_timeout(self, socket):
""" Depending on the combination of python version and whether we're
......
......@@ -57,7 +57,7 @@ def next_frame_size(socket):
return actual
def read_iter(socket):
def frames_iter(socket):
"""
Returns a generator of frames read from socket
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment