Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows the construction of a `SinglefileData` from content that is already in memory as a `str`. Although this was already possible through `SinglefileData(io.StringIO(content))`, the classmethod has advantages: * No need for separate import of `io` * Method can be found easily through introspection * Overall is more intuitive than turning string content into a stream
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 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