Skip to content

Commit

Permalink
Implemented unbuffered output (#75)
Browse files Browse the repository at this point in the history
* Unbuffered output. closes #51.

* fixed black

* added missing io import

* added missing sys import
  • Loading branch information
Helveg committed Sep 10, 2020
1 parent bb23709 commit 5048bdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bsb/reporting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import warnings, base64
import warnings, base64, io, sys

warnings.filterwarnings("once", category=DeprecationWarning)
sys.stdout = io.TextIOWrapper(open(sys.stdout.fileno(), "wb", 0), write_through=True)

_verbosity = 1
_report_file = None
Expand Down

0 comments on commit 5048bdd

Please sign in to comment.