This repository was archived by the owner on Jan 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ def listlen(list):
132132 return sum (map (len , list ))
133133
134134 # Keep reading until the stream is closed or we get enough data.
135- while not self .remote_closed and (amt is None or listlen (self .data ) < amt ):
135+ while (not self .remote_closed and
136+ (amt is None or listlen (self .data ) < amt )):
136137 self ._recv_cb ()
137138
138139 result = b'' .join (self .data )
@@ -246,11 +247,11 @@ def gettrailers(self):
246247
247248 def get_pushes (self , capture_all = False ):
248249 """
249- Returns a generator that yields push promises from the server. Note that
250- this method is not idempotent; promises returned in one call will not be
251- returned in subsequent calls. Iterating through generators returned by
252- multiple calls to this method simultaneously results in undefined
253- behavior.
250+ Returns a generator that yields push promises from the server. Note
251+ that this method is not idempotent; promises returned in one call will
252+ not be returned in subsequent calls. Iterating through generators
253+ returned by multiple calls to this method simultaneously results in
254+ undefined behavior.
254255
255256 :param capture_all: If ``False``, the generator will yield all buffered
256257 push promises without blocking. If ``True``, the generator will
You can’t perform that action at this time.
0 commit comments