[PATCH 04/12] Accommodate and enable pylint abstract-method

0 views
Skip to first unread message

Rob Browning

unread,
Mar 6, 2026, 6:16:52 PM (8 days ago) Mar 6
to bup-...@googlegroups.com
Signed-off-by: Rob Browning <r...@defaultvalue.org>
Tested-by: Rob Browning <r...@defaultvalue.org>
---
.pylintrc | 1 +
lib/bup/cmd/web.py | 3 +++
2 files changed, 4 insertions(+)

diff --git a/.pylintrc b/.pylintrc
index 6a39ec9f..9bd968d5 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -4,6 +4,7 @@
[MESSAGES CONTROL]
disable=all
enable=
+ abstract-method,
arguments-differ,
arguments-renamed,
assert-on-string-literal,
diff --git a/lib/bup/cmd/web.py b/lib/bup/cmd/web.py
index 58638736..c5bf625d 100644
--- a/lib/bup/cmd/web.py
+++ b/lib/bup/cmd/web.py
@@ -329,6 +329,9 @@ class BupRequestHandler(tornado.web.RequestHandler):
'.h': 'text/plain',
})

+ def data_received(self, chunk): # for pylint abstract-method
+ raise NotImplementedError('bup web does not receive data')
+

io_loop = None

--
2.47.3

Reply all
Reply to author
Forward
0 new messages