mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-22 14:22:25 +00:00
Adjust formatting to be pep8-compliant.
This commit is contained in:
parent
80fe154634
commit
7faec2e10a
@ -48,7 +48,7 @@ class DeepStats(object):
|
|||||||
self.histograms = {}
|
self.histograms = {}
|
||||||
for k in ["size-files-histogram"]:
|
for k in ["size-files-histogram"]:
|
||||||
self.histograms[k] = {} # maps (min,max) to count
|
self.histograms[k] = {} # maps (min,max) to count
|
||||||
self.buckets = [(0,0), (1,3)]
|
self.buckets = [(0, 0), (1, 3)]
|
||||||
self.root = math.sqrt(10)
|
self.root = math.sqrt(10)
|
||||||
|
|
||||||
def set_monitor(self, monitor):
|
def set_monitor(self, monitor):
|
||||||
|
@ -365,8 +365,8 @@ class DirectoryNode:
|
|||||||
children.set_with_aux(name, (child, metadata), auxilliary=entry)
|
children.set_with_aux(name, (child, metadata), auxilliary=entry)
|
||||||
else:
|
else:
|
||||||
log.msg(format="mutable cap for child %(name)s unpacked from an immutable directory",
|
log.msg(format="mutable cap for child %(name)s unpacked from an immutable directory",
|
||||||
name=quote_output(name, encoding='utf-8'),
|
name=quote_output(name, encoding='utf-8'),
|
||||||
facility="tahoe.webish", level=log.UNUSUAL)
|
facility="tahoe.webish", level=log.UNUSUAL)
|
||||||
except CapConstraintError, e:
|
except CapConstraintError, e:
|
||||||
log.msg(format="unmet constraint on cap for child %(name)s unpacked from a directory:\n"
|
log.msg(format="unmet constraint on cap for child %(name)s unpacked from a directory:\n"
|
||||||
"%(message)s", message=e.args[0], name=quote_output(name, encoding='utf-8'),
|
"%(message)s", message=e.args[0], name=quote_output(name, encoding='utf-8'),
|
||||||
|
Loading…
Reference in New Issue
Block a user