version bump

This commit is contained in:
Will McGugan 2020-07-30 21:45:24 +01:00
parent 1aee7edc14
commit 8a6e467106
3 changed files with 5 additions and 5 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Added thread to automatically call update() in progress.track(). Replacing previous adaptive algorithm.
- Second attempt at working around https://bugs.python.org/issue37871
## [4.2.1] - 2020-07-29

View File

@ -180,7 +180,7 @@ if __name__ == "__main__": # pragma: no cover
text = console.file.getvalue()
# https://bugs.python.org/issue37871
for offset in range(0, len(text), 8192):
print(text[offset : offset + 8192], end="")
for line in text.splitlines():
print(line)
print(f"rendered in {taken}ms")

View File

@ -986,10 +986,9 @@ class Console:
if text:
if WINDOWS: # pragma: no cover
# https://bugs.python.org/issue37871
CHUNK_SIZE = 8192
write = self.file.write
for offset in range(0, len(text), CHUNK_SIZE):
write(text[offset : offset + CHUNK_SIZE])
for line in text.splitlines(True):
write(line)
else:
self.file.write(text)
self.file.flush()