Skip to content

Commit 99b7701

Browse files
verhovskyrhettinger
authored andcommitted
Convert argument to snake_case (GH-16990)
1 parent d9d3993 commit 99b7701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/itertools.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,9 @@ which incur interpreter overhead.
766766
def dotproduct(vec1, vec2):
767767
return sum(map(operator.mul, vec1, vec2))
768768

769-
def flatten(listOfLists):
769+
def flatten(list_of_lists):
770770
"Flatten one level of nesting"
771-
return chain.from_iterable(listOfLists)
771+
return chain.from_iterable(list_of_lists)
772772

773773
def repeatfunc(func, times=None, *args):
774774
"""Repeat calls to func with specified arguments.

0 commit comments

Comments
 (0)