Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Aug 21, 2024
1 parent a71ea66 commit ae1387a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion hyper/httplib_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

# The HTTPConnection object is currently always the underlying one.
HTTPConnection = httplib.HTTPConnection
HTTPSConnection = httplib.HTTPSConnection

# If we have NPN support, define our custom one, otherwise just use the
# default.
Expand Down Expand Up @@ -114,3 +113,5 @@ def _delayed_connect(self):
self._conn = tempconn

return
else:
HTTPSConnection = httplib.HTTPSConnection
2 changes: 1 addition & 1 deletion test/test_http11.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ def send(self, data):

self.queue.append(data)

def recv(self, l):
def recv(self, l): # noqa: E741
data = self._buffer.read(l)
self._read_counter += len(data)
return memoryview(data)
Expand Down
2 changes: 1 addition & 1 deletion test/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ def send(self, data):

sendall = send

def recv(self, l):
def recv(self, l): # noqa: E741
data = self._buffer.read(l)
self._read_counter += len(data)
return memoryview(data)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ commands= py.test {toxinidir}/test/

[testenv:lint]
basepython=python3
deps = flake8==2.5.4
deps = flake8==7.1.1
commands = flake8 hyper test

[gh]
Expand Down

0 comments on commit ae1387a

Please sign in to comment.