Fix write_timestamp for py3
toml.dumps() returns a string for write() so .encode is not needed.
This commit is contained in:
parent
95462600fa
commit
2b0efff9e4
@ -40,7 +40,7 @@ def write_timestamp(destdir, ty):
|
||||
contents[TS_FINISHED] = time.time()
|
||||
|
||||
with open(path, "w") as f:
|
||||
f.write(toml.dumps(contents).encode("UTF-8"))
|
||||
f.write(toml.dumps(contents))
|
||||
|
||||
def timestamp_dict(destdir):
|
||||
path = joinpaths(destdir, "times.toml")
|
||||
|
Loading…
Reference in New Issue
Block a user