summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-09-06 19:35:01 +0100
committerLars Wirzenius <liw@liw.fi>2013-09-06 19:35:01 +0100
commit5d5cad304495c701234a6a963592f4b83c21dbba (patch)
treede646356876ae525b546f6a8cf0116c87cf1aebb
parent6b5c82dd16d0a0192e23829b13a2b979c26b44fd (diff)
downloadlarch-5d5cad304495c701234a6a963592f4b83c21dbba.tar.gz
Break long lines
-rwxr-xr-xfsck-larch3
-rwxr-xr-xlarch/fsck.py14
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):