From b4f9fb5c1f6b1ef3b394f36395e8f6345136d54b Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 7 Aug 2018 08:39:05 -0700 Subject: [PATCH] Fix write_timestamp for py3 toml.dumps() returns a string for write() so .encode is not needed. --- src/pylorax/api/timestamp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/api/timestamp.py b/src/pylorax/api/timestamp.py index 9135ad4d..1d674d37 100644 --- a/src/pylorax/api/timestamp.py +++ b/src/pylorax/api/timestamp.py @@ -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")