Commit 85eea4a87ed8674d187a2b2d48f51f57efec9a75

Authored by Quillot Mathias
1 parent 6957c7c92b
Exists in master

A space was needed when no values was given to the write_line function

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -104,5 +104,8 @@
104 104 values (list, optional): list of values to write, features or labels. Defaults to [].
105 105 out (_io.TextIOWrapper, optional): . Defaults to sys.stdout.
106 106 """
107   - out.write(str(id_) + " ".join(values) + "\n")
  107 + if len(values) == 0:
  108 + out.write(str(id_) + "\n")
  109 + else:
  110 + out.write(str(id_) + " " + " ".join(values) + "\n")