Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit b1c0f85

Browse files
committed
Fixup linting errors in http20/stream.py.
1 parent abbb96a commit b1c0f85

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

hyper/http20/stream.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)