Skip to content

Commit

Permalink
Fixed mistake in the readme examples
Browse files Browse the repository at this point in the history
The `stream` and `lines` arguments for the `LineOffsetStreamWrapper` were swapped.
  • Loading branch information
wolph committed Dec 18, 2023
1 parent 0eee8aa commit 2a1679a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Showing multiple independent progress bars in parallel
)
# Create a file descriptor for regular printing as well
print_fd = progressbar.LineOffsetStreamWrapper(sys.stdout, 0)
print_fd = progressbar.LineOffsetStreamWrapper(lines=0, stream=sys.stdout)
# The progress bar updates, normally you would do something useful here
for i in range(N * BARS):
Expand Down

0 comments on commit 2a1679a

Please sign in to comment.