Fix version number writing
This commit is contained in:
parent
b9e5ffa2b3
commit
44ae06f84e
|
@ -4,7 +4,7 @@ def write_header(f):
|
||||||
# b'WOT' magic
|
# b'WOT' magic
|
||||||
f.write(b'WOT')
|
f.write(b'WOT')
|
||||||
# Version number
|
# Version number
|
||||||
f.write(bytes(0))
|
f.write(bytes([0]))
|
||||||
|
|
||||||
def write_entry(f, salt, hashed_host, fingerprint, comment):
|
def write_entry(f, salt, hashed_host, fingerprint, comment):
|
||||||
"""write_entry(file(wb), bytes[32], bytes[32], bytes[32], bytes[0…2¹⁶-1])
|
"""write_entry(file(wb), bytes[32], bytes[32], bytes[32], bytes[0…2¹⁶-1])
|
||||||
|
|
Loading…
Reference in New Issue