Kaydet (Commit) 730c0d2e authored tarafından Ramiro Morales's avatar Ramiro Morales

Fixed a couple of docstring typos.

üst c2a6b2a4
...@@ -5,9 +5,9 @@ import sys ...@@ -5,9 +5,9 @@ import sys
from django.utils import six from django.utils import six
# You can't trivially replace this `functools.partial` because this binds to # You can't trivially replace this with `functools.partial` because this binds
# classes and returns bound instances, whereas functools.partial (on CPython) # to classes and returns bound instances, whereas functools.partial (on
# is a type and its instances don't bind. # CPython) is a type and its instances don't bind.
def curry(_curried_func, *args, **kwargs): def curry(_curried_func, *args, **kwargs):
def _curried(*moreargs, **morekwargs): def _curried(*moreargs, **morekwargs):
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs)) return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
...@@ -33,8 +33,8 @@ def memoize(func, cache, num_args): ...@@ -33,8 +33,8 @@ def memoize(func, cache, num_args):
class cached_property(object): class cached_property(object):
""" """
Decorator that creates converts a method with a single Decorator that converts a method with a single self argument into a
self argument into a property cached on the instance. property cached on the instance.
""" """
def __init__(self, func): def __init__(self, func):
self.func = func self.func = func
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment