Loading django/utils/functional.py +2 −2 Original line number Diff line number Diff line Loading @@ -312,8 +312,8 @@ def partition(predicate, values): Splits the values into two sets, based on the return value of the function (True/False). e.g.: >>> partition(lambda: x > 3, range(5)) [1, 2, 3], [4] >>> partition(lambda x: x > 3, range(5)) [0, 1, 2, 3], [4] """ results = ([], []) for item in values: Loading Loading
django/utils/functional.py +2 −2 Original line number Diff line number Diff line Loading @@ -312,8 +312,8 @@ def partition(predicate, values): Splits the values into two sets, based on the return value of the function (True/False). e.g.: >>> partition(lambda: x > 3, range(5)) [1, 2, 3], [4] >>> partition(lambda x: x > 3, range(5)) [0, 1, 2, 3], [4] """ results = ([], []) for item in values: Loading