From 99b7701978d1fdc81e10c31d1ad8cce2c0c2d848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D1=80=D0=B8=D1=81=20=D0=92=D0=B5=D1=80=D1=85?= =?UTF-8?q?=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Sat, 2 Nov 2019 15:09:14 -0400 Subject: [PATCH] Convert argument to snake_case (GH-16990) --- Doc/library/itertools.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 8d134d43806..3e5a6738981 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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.