Skip to content

Commit 8863133

Browse files
implement append as append_line in JsonLineFile
1 parent e16f342 commit 8863133

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pysenal/io/file.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,12 @@ def write_lines(self, lines):
424424
for line in lines:
425425
self.write_line(line)
426426

427-
def append_line(self, line):
427+
def append(self, data):
428428
self._to_append()
429-
self._file.append(self._to_string(line))
429+
self._file.append(self._to_string(data))
430+
431+
def append_line(self, line):
432+
self.append(line)
430433

431434
def append_lines(self, lines):
432435
for line in lines:

0 commit comments

Comments
 (0)