Should be explicitly bytes.

This commit is contained in:
Itamar Turner-Trauring 2020-08-20 13:15:24 -04:00
parent 3d05f6cfaf
commit be9f02cb13

View File

@ -48,8 +48,9 @@ class MutableShareFile(object):
# our sharefiles share with a recognizable string, plus some random # our sharefiles share with a recognizable string, plus some random
# binary data to reduce the chance that a regular text file will look # binary data to reduce the chance that a regular text file will look
# like a sharefile. # like a sharefile.
MAGIC = "Tahoe mutable container v1\n" + "\x75\x09\x44\x03\x8e" MAGIC = b"Tahoe mutable container v1\n" + b"\x75\x09\x44\x03\x8e"
assert len(MAGIC) == 32 assert len(MAGIC) == 32
assert isinstance(MAGIC, bytes)
MAX_SIZE = MAX_MUTABLE_SHARE_SIZE MAX_SIZE = MAX_MUTABLE_SHARE_SIZE
# TODO: decide upon a policy for max share size # TODO: decide upon a policy for max share size