Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improve stream compatibility with isatty #23

Merged
merged 2 commits into from
Jan 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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