From 2b0efff9e41799e7c21555ae882c9844820818f5 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")