Signed-off-by: Rob Browning <
r...@defaultvalue.org>
Tested-by: Rob Browning <
r...@defaultvalue.org>
---
.pylintrc | 1 +
lib/bup/cmd/index.py | 3 ++-
test/int/test_vfs.py | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.pylintrc b/.pylintrc
index db88bfc3..84611d17 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -30,6 +30,7 @@ enable=
deprecated-module,
expression-not-assigned,
f-string-without-interpolation,
+ function-redefined,
inconsistent-return-statements,
logging-not-lazy,
no-else-continue,
diff --git a/lib/bup/cmd/index.py b/lib/bup/cmd/index.py
index 91c9c8c4..ae171b31 100644
--- a/lib/bup/cmd/index.py
+++ b/lib/bup/cmd/index.py
@@ -89,9 +89,10 @@ def update_index(top, excluded_paths, exclude_rxs, fsindex,
rig = IterHelper(ri.iter(name=top))
- fake_hash = None
if fake_valid:
def fake_hash(name_): return (GIT_MODE_FILE, index.FAKE_SHA)
+ else:
+ fake_hash = None
total = 0
bup_dir = os.path.abspath(defaultrepo())
diff --git a/test/int/test_vfs.py b/test/int/test_vfs.py
index dac1085a..f66c7cd6 100644
--- a/test/int/test_vfs.py
+++ b/test/int/test_vfs.py
@@ -17,7 +17,7 @@ from bup.compat import environ, fsencode
from bup.helpers import exc, shstr
from bup.metadata import Metadata
from bup.repo import LocalRepo
-from buptest import ex, exo
+from buptest import exo
from buptest.vfs import tree_dict
lib_t_dir = os.path.dirname(fsencode(__file__))
--
2.47.3