[PATCH 02/12] Accommodate and enable pylint arguments-renamed

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/repo/local.py | 8 ++++----
lib/bup/repo/remote.py | 8 ++++----
3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/.pylintrc b/.pylintrc
index 8af9bc45..1e2f6244 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -5,6 +5,7 @@
disable=all
enable=
arguments-differ,
+ arguments-renamed,
assert-on-string-literal,
assignment-from-no-return,
bad-classmethod-argument,
diff --git a/lib/bup/repo/local.py b/lib/bup/repo/local.py
index 0656e5db..84fcdcbd 100644
--- a/lib/bup/repo/local.py
+++ b/lib/bup/repo/local.py
@@ -170,13 +170,13 @@ class LocalRepo(RepoProtocol):
self._ensure_packwriter()
return self._packwriter.new_blob(data)

- def just_write(self, sha, type, content):
+ def just_write(self, oid, type, content):
self._ensure_packwriter()
- return self._packwriter.just_write(sha, type, content)
+ return self._packwriter.just_write(oid, type, content)

- def exists(self, sha, want_source=False):
+ def exists(self, oid, want_source=False):
self._ensure_packwriter()
- return self._packwriter.exists(sha, want_source=want_source)
+ return self._packwriter.exists(oid, want_source=want_source)

def finish_writing(self):
if self._packwriter:
diff --git a/lib/bup/repo/remote.py b/lib/bup/repo/remote.py
index 44af1ddb..4255b8cd 100644
--- a/lib/bup/repo/remote.py
+++ b/lib/bup/repo/remote.py
@@ -100,13 +100,13 @@ class RemoteRepo(RepoProtocol):
self._ensure_packwriter()
return self._packwriter.new_blob(data)

- def just_write(self, sha, type, content):
+ def just_write(self, oid, type, content):
self._ensure_packwriter()
- return self._packwriter.just_write(sha, type, content)
+ return self._packwriter.just_write(oid, type, content)

- def exists(self, sha, want_source=False):
+ def exists(self, oid, want_source=False):
self._ensure_packwriter()
- return self._packwriter.exists(sha, want_source=want_source)
+ return self._packwriter.exists(oid, want_source=want_source)

def finish_writing(self):
if self._packwriter:
--
2.47.3

Reply all
Reply to author
Forward
0 new messages