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

Commit 140ac5c

Browse files
committed
Fixup lint errors in bufsocket.py.
1 parent a4d629b commit 140ac5c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hyper/common/bufsocket.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import select
1414
from .exceptions import ConnectionResetError, LineTooLongError
1515

16+
1617
class BufferedSocket(object):
1718
"""
1819
A buffered socket wrapper.
@@ -137,8 +138,7 @@ def recv(self, amt):
137138
else:
138139
should_read = True
139140

140-
if ((self._remaining_capacity > self._bytes_in_buffer) and
141-
(should_read)):
141+
if (self._remaining_capacity > self._bytes_in_buffer and should_read):
142142
count = self._sck.recv_into(self._buffer_view[self._buffer_end:])
143143

144144
# The socket just got closed. We should throw an exception if we
@@ -172,7 +172,6 @@ def fill(self):
172172

173173
return
174174

175-
176175
def readline(self):
177176
"""
178177
Read up to a newline from the network and returns it. The implicit

0 commit comments

Comments
 (0)