From 5d5cad304495c701234a6a963592f4b83c21dbba Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 6 Sep 2013 19:35:01 +0100 Subject: Break long lines --- fsck-larch | 3 ++- larch/fsck.py | 14 ++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/fsck-larch b/fsck-larch index 4dca010..4de0bce 100755 --- a/fsck-larch +++ b/fsck-larch @@ -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): -- cgit v1.2.1