Skip to content

Commit 0eb6fef

Browse files
miss-islingtonverhovsky
authored andcommitted
Convert argument to snake_case (GH-16990) (GH-17033)
(cherry picked from commit 99b7701) Co-authored-by: Борис Верховский <[email protected]>
1 parent 4c22e16 commit 0eb6fef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/itertools.rst

Lines changed: 2 additions & 2 deletions
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)