diff options
| author | Tim Graham <timograham@gmail.com> | 2012-08-04 18:56:43 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-08-04 18:56:43 -0400 |
| commit | 86c5c0154f69728eba4aad6204621f07cdd3459d (patch) | |
| tree | 719a1992eb58750ae585181236349472074991f2 | |
| parent | 9ea4dc90b9d72648f0f26cc60b19727b35267da0 (diff) | |
Fixed a mistake in function documentation 'django.utils.functional.partition'
Thanks Raman Barkholenka for the patch.
| -rw-r--r-- | django/utils/functional.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index 2dca182b99..69aae09887 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -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: |
