]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Convert argument to snake_case (GH-16990)
authorБорис Верховский <boris.verk@gmail.com>
Sat, 2 Nov 2019 19:09:14 +0000 (15:09 -0400)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 2 Nov 2019 19:09:14 +0000 (12:09 -0700)
Doc/library/itertools.rst

index 8d134d438065934c7c77a7e962fbca4de70ae409..3e5a673898106c5005b1b83219345cc9aa08bca7 100644 (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.