Skip to content

Commit

Permalink
Don't flush stderr and stdout in penman command
Browse files Browse the repository at this point in the history
Fixes #60
  • Loading branch information
goodmami committed Feb 11, 2020
1 parent bc0b820 commit 16bc8dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

(no unreleased changes yet)

### Fixed

* Don't flush standard streams in `penman` command ([#60][])


## [v0.11.1][]

Expand Down Expand Up @@ -622,5 +626,6 @@ First release with very basic functionality.
[#52]: https://github.com/goodmami/penman/issues/52
[#53]: https://github.com/goodmami/penman/issues/53
[#55]: https://github.com/goodmami/penman/issues/55
[#60]: https://github.com/goodmami/penman/issues/60
[#61]: https://github.com/goodmami/penman/issues/61
[#67]: https://github.com/goodmami/penman/issues/67
3 changes: 1 addition & 2 deletions penman/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ def _process(t):
indent=bool(format_options.get('indent', True)))
else:
s = codec.encode(g, **format_options)
err.flush()

print(s, file=out)
out.flush()


def main():
Expand Down

0 comments on commit 16bc8dc

Please sign in to comment.