diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-09-06 19:35:01 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-09-06 19:35:01 +0100 |
commit | 5d5cad304495c701234a6a963592f4b83c21dbba (patch) | |
tree | de646356876ae525b546f6a8cf0116c87cf1aebb | |
parent | 6b5c82dd16d0a0192e23829b13a2b979c26b44fd (diff) | |
download | larch-5d5cad304495c701234a6a963592f4b83c21dbba.tar.gz |
Break long lines
-rwxr-xr-x | fsck-larch | 3 | ||||
-rwxr-xr-x | larch/fsck.py | 14 |
2 files changed, 12 insertions, 5 deletions
@@ -42,7 +42,8 @@ class Fsck(cliapp.Application): at_least_one_error = False for dirname in args: self.errors = False - forest = larch.open_forest(allow_writes=self.settings['fix'],dirname=dirname) + forest = larch.open_forest( + allow_writes=self.settings['fix'], dirname=dirname) self.ts = ttystatus.TerminalStatus(period=0.1) self.ts['item'] = None self.ts['items'] = 0 diff --git a/larch/fsck.py b/larch/fsck.py index e3c37b1..68b151a 100755 --- a/larch/fsck.py +++ b/larch/fsck.py @@ -77,7 +77,9 @@ class CheckIndexNode(WorkItem): def __init__(self, fsck, node): self.fsck = fsck self.node = node - self.name = 'CheckIndexNode: checking index node %s in %s' % (self.node.id, self.fsck.forest_name) + self.name = ( + 'CheckIndexNode: checking index node %s in %s' % + (self.node.id, self.fsck.forest_name)) def do(self): tracing.trace('node.id=%s' % self.node.id) @@ -141,7 +143,9 @@ class CheckRefcounts(WorkItem): self.name = 'CheckRefcounts: refcounts in %s' % self.fsck.forest_name def do(self): - tracing.trace('CheckRefcounts : %s nodes to check' % len(self.fsck.refcounts) ) + tracing.trace( + 'CheckRefcounts : %s nodes to check' % + len(self.fsck.refcounts) ) for node_id in self.fsck.refcounts: tracing.trace('CheckRefcounts checking node %s' % node_id) refcount = self.fsck.forest.node_store.get_refcount(node_id) @@ -163,7 +167,8 @@ class CommitForest(WorkItem): def __init__(self, fsck): self.fsck = fsck - self.name = 'CommitForest: committing fixes to %s' % self.fsck.forest_name + self.name = ('CommitForest: committing fixes to %s' % + self.fsck.forest_name) def do(self): tracing.trace('committing changes to %s' % self.fsck.forest_name) @@ -211,7 +216,8 @@ class Fsck(object): ts['item'] = work generator_or_none = work.do() if generator_or_none: - # Run new work before carrying-on with work_generators (required for proper refcount check) + # Run new work before carrying-on with work_generators + # (required for proper refcount check) work_generators.insert(0,generator_or_none) def run_fsck(self, ts=None): |