Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a mistake in function documentation 'django.utils.functional.pa…

…rtition'

Thanks Raman Barkholenka for the patch.
  • Loading branch information...
commit 86c5c0154f69728eba4aad6204621f07cdd3459d 1 parent 9ea4dc9
@timgraham timgraham authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/functional.py
View
4 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:
Please sign in to comment.
Something went wrong with that request. Please try again.