backup: nits assert without parentheses

This commit is contained in:
Michael Schmoock
2022-12-27 16:25:48 +01:00
committed by Christian Decker
parent 70c1f0a4ee
commit 6ab4d35003
7 changed files with 44 additions and 47 deletions

View File

@@ -119,7 +119,7 @@ class FileBackend(Backend):
if version != self.version:
raise ValueError("Versions do not match up: restored version {}, backend version {}".format(version, self.version))
assert(version == self.version)
assert version == self.version
def compact(self):
stop = self.version # Stop one version short of the head when compacting