-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
csv: only flush on explicit flush call
This fixes a bug where the CSV writer was erroneously flushing the underlying writer when its internal buffer was full. Instead, when the internal buffer is full, it should simply write the contents of the buffer to the underlying writer. There is no need to flush it. Indeed, this causes other problems such as those observed in BurntSushi/xsv#151. We are careful to ensure that calling `flush` explicitly still calls `flush` on the underlying writer. Fixes #173
- Loading branch information
1 parent
fcdbea3
commit e2c2468
Showing
1 changed file
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters