Skip to content

Commit

Permalink
DOCS: itertools.tee takes no keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Jul 3, 2017
1 parent ef96893 commit 1e12350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorials/image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Here is a recipe for it::
sem: `~numpy.ndarray`
Weighted average.
"""
stream1, stream2 = itertools.tee(images, n = 2)
stream1, stream2 = itertools.tee(images, 2)
averages = iaverage(stream1, weights = weights)
errors = isem(stream2)
yield from zip(averages, errors)
Expand Down

0 comments on commit 1e12350

Please sign in to comment.