mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
storage/mutable.py: special characters in struct.foo arguments indicate standard as opposed to native sizes, we should be using these characters in these asserts
This commit is contained in:
parent
08ea3dc512
commit
d2e5de3b69
@ -28,8 +28,8 @@ from allmydata.storage.common import UnknownMutableContainerVersionError, \
|
||||
# 9 ?? n*92 extra leases
|
||||
|
||||
|
||||
assert struct.calcsize("L"), 4 # The struct module doc says that L's are 4 bytes in size.
|
||||
assert struct.calcsize("Q"), 8 # The struct module doc says that Q's are 8 bytes in size (at least with big-endian ordering).
|
||||
assert struct.calcsize(">L") == 4 # The struct module doc says that L's are 4 bytes in size.
|
||||
assert struct.calcsize(">Q") == 8 # The struct module doc says that Q's are 8 bytes in size (at least with big-endian ordering).
|
||||
|
||||
class MutableShareFile:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user