Skip to content

Commit

Permalink
fix: fix WriteBuffer.flush method bug (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed Jan 21, 2020
1 parent 01cf93b commit d46c1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reacnetgenerator/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def check(self):

def flush(self):
if self.buff:
self.f.write(self.sep.join(self.buff))
self.f.writelines([self.sep.join(self.buff), self.sep])
self.buff[:] = []

def __enter__(self):
Expand Down

1 comment on commit d46c1d8

@vercel
Copy link

@vercel vercel bot commented on d46c1d8 Jan 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.