Fix write_timestamp for py3

toml.dumps() returns a string for write() so .encode is not needed.
This commit is contained in:
Brian C. Lane 2018-08-07 08:39:05 -07:00
parent 95462600fa
commit 2b0efff9e4

View File

@ -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")