Skip to content

Commit

Permalink
Merge pull request #23 from rsalmei/rsa-improve-stream
Browse files Browse the repository at this point in the history
Further improve stream compatibility with isatty
  • Loading branch information
rsalmei authored Jan 26, 2020
2 parents a33c293 + dc4ba3e commit e695150
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ Do note that this console is heavily instrumented and has more overhead, so the


## Changelog highlights:
- 1.3.3: further improve stream compatibility with isatty
- 1.3.2: beautifully finalize bar in case of unexpected errors
- 1.3.1: fix a subtle race condition that could leave artifacts if ended very fast, flush print buffer when position changes or bar terminates, keep total argument from unexpected types
- 1.3.0: new fps calibration system, support force_tty and manual options in global configuration, multiple increment support in bar handler
Expand Down
2 changes: 1 addition & 1 deletion alive_progress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
frame_spinner_factory, scrolling_spinner_factory, spinner_player
from .styles import BARS, SPINNERS, THEMES

VERSION = (1, 3, 2)
VERSION = (1, 3, 3)

__author__ = 'Rogério Sampaio de Almeida'
__email__ = '[email protected]'
Expand Down
1 change: 1 addition & 0 deletions alive_progress/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def print_hook(part):
print_buffer = []
print_hook.write = print_hook
print_hook.flush = lambda: None
print_hook.isatty = sys.__stdout__.isatty
print_lock = threading.Lock()

def start_monitoring(offset=0.):
Expand Down

0 comments on commit e695150

Please sign in to comment.