Skip to content

Commit 2a1679a

Browse files
authored
Fixed mistake in the readme examples
The `stream` and `lines` arguments for the `LineOffsetStreamWrapper` were swapped.
1 parent 0eee8aa commit 2a1679a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Showing multiple independent progress bars in parallel
304304
)
305305
306306
# Create a file descriptor for regular printing as well
307-
print_fd = progressbar.LineOffsetStreamWrapper(sys.stdout, 0)
307+
print_fd = progressbar.LineOffsetStreamWrapper(lines=0, stream=sys.stdout)
308308
309309
# The progress bar updates, normally you would do something useful here
310310
for i in range(N * BARS):

0 commit comments

Comments
 (0)