Convert argument to snake_case (GH-16990) (GH-17033)

(cherry picked from commit 99b7701978)

Co-authored-by: Борис Верховский <boris.verk@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-11-04 23:07:24 -08:00 committed by Raymond Hettinger
parent 4c22e1665c
commit 0eb6fefad7
1 changed files with 2 additions and 2 deletions

View File

@ -766,9 +766,9 @@ which incur interpreter overhead.
def dotproduct(vec1, vec2):
return sum(map(operator.mul, vec1, vec2))
def flatten(listOfLists):
def flatten(list_of_lists):
"Flatten one level of nesting"
return chain.from_iterable(listOfLists)
return chain.from_iterable(list_of_lists)
def repeatfunc(func, times=None, *args):
"""Repeat calls to func with specified arguments.