Fix version number writing

This commit is contained in:
Juhani Krekelä 2018-08-28 13:36:43 +03:00
parent b9e5ffa2b3
commit 44ae06f84e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ def write_header(f):
# b'WOT' magic
f.write(b'WOT')
# Version number
f.write(bytes(0))
f.write(bytes([0]))
def write_entry(f, salt, hashed_host, fingerprint, comment):
"""write_entry(file(wb), bytes[32], bytes[32], bytes[32], bytes[0…2¹⁶-1])