mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-13 13:53:07 +00:00
debug: pass empty optional arguments to ReadBucketProxy
because those arguments are about to become non-optional (for other code than test/debug code)
This commit is contained in:
parent
8e48a0eeef
commit
82ee44ed5b
@ -53,7 +53,7 @@ def dump_immutable_share(options):
|
||||
out = options.stdout
|
||||
f = storage.ShareFile(options['filename'])
|
||||
# use a ReadBucketProxy to parse the bucket and find the uri extension
|
||||
bp = ReadBucketProxy(None)
|
||||
bp = ReadBucketProxy(None, '', '')
|
||||
offsets = bp._parse_offsets(f.read_share_data(0, 0x44))
|
||||
print >>out, "%20s: %d" % ("version", bp._version)
|
||||
seek = offsets['uri_extension']
|
||||
@ -734,7 +734,7 @@ def corrupt_share(options):
|
||||
else:
|
||||
# otherwise assume it's immutable
|
||||
f = storage.ShareFile(fn)
|
||||
bp = ReadBucketProxy(None)
|
||||
bp = ReadBucketProxy(None, '', '')
|
||||
offsets = bp._parse_offsets(f.read_share_data(0, 0x24))
|
||||
start = f._data_offset + offsets["data"]
|
||||
end = f._data_offset + offsets["plaintext_hash_tree"]
|
||||
|
@ -182,7 +182,7 @@ class BucketProxy(unittest.TestCase):
|
||||
br = BucketReader(self, sharefname)
|
||||
rb = RemoteBucket()
|
||||
rb.target = br
|
||||
rbp = rbp_class(rb, peerid="abc")
|
||||
rbp = rbp_class(rb, peerid="abc", storage_index="")
|
||||
self.failUnless("to peer" in repr(rbp))
|
||||
self.failUnless(interfaces.IStorageBucketReader.providedBy(rbp))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user