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