diff --git a/artiq/management/pyon.py b/artiq/management/pyon.py index c231b63be..23d701bc7 100644 --- a/artiq/management/pyon.py +++ b/artiq/management/pyon.py @@ -156,8 +156,9 @@ def store_file(filename, x): """Encodes a Python object and writes it to the specified file. """ + contents = encode(x, True) with open(filename, "w") as f: - f.write(encode(x, True)) + f.write(contents) def load_file(filename):