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 b614a81f5b
commit 0a6e58d03d
1 changed files with 1 additions and 1 deletions

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