-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Changes - `write` now supports as a parameter either a filename or a `io.BytesIO` object. - refactor write method into: - `_write_default_header_entries` to write the default header entries generated by this package - `_handle_header_fields` to determine the headers based on the specified headers, data and index order - `_write_header` that used the logic from `_write_default_header_entries` and `_handle_header_fields` to write the headers - `write` used the methods above to encapsulate and reuse better the code - added new tests to check the functionality. Coverage still 100% after these changes
- Loading branch information
1 parent
7213262
commit a8667a5
Showing
4 changed files
with
257 additions
and
172 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
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
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
Oops, something went wrong.