Skip to content

Commit 0a0e3c6

Browse files
authored
Merge pull request #23 from tekktrik/dev/fix-pylint-errors
Change method to static method
2 parents 1902454 + 252b37c commit 0a0e3c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_httpserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def _send_file_response(self, conn, filename, root, file_length):
247247
while bytes_read := file.read(2048):
248248
self._send_bytes(conn, bytes_read)
249249

250-
def _send_bytes(self, conn, buf):
250+
@staticmethod
251+
def _send_bytes(conn, buf):
251252
bytes_sent = 0
252253
bytes_to_send = len(buf)
253254
view = memoryview(buf)

0 commit comments

Comments
 (0)