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

DummyTqdmFile line buffering #960

Merged
merged 2 commits into from Feb 17, 2021
Merged

DummyTqdmFile line buffering #960

merged 2 commits into from Feb 17, 2021

Commits on Feb 17, 2021

  1. Don't insert spurious newlines in DummyTqdmFile.

    Only call `tqdm.write` (which inserts a newline) if
    `DummyTqdmFile.write` is itself called with a string containing a
    newline; otherwise buffer the rest of the string.
    
    See changes in test_tqdm.py for the patterns this allows.
    anntzer authored and casperdcl committed Feb 17, 2021
    Copy the full SHA
    8e139fc View commit details
    Browse the repository at this point in the history
  2. more DummyTqdmFile safety

    casperdcl committed Feb 17, 2021
    Copy the full SHA
    d649576 View commit details
    Browse the repository at this point in the history