diff options
| author | xuxiang <dlutxx@gmail.com> | 2013-11-20 10:02:30 +0800 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2013-11-19 23:08:21 -0500 |
| commit | 4cfe6ba6a3d16a16f0561f2f3c5b56d117f8a60d (patch) | |
| tree | 4032334140f2c73906e9b72a527aea626397dda5 /django/dispatch | |
| parent | 73b3c257e339985f2ab009c3ccf9a74be9e1d134 (diff) | |
Use `classmethod` as a decorator.
Diffstat (limited to 'django/dispatch')
| -rw-r--r-- | django/dispatch/saferef.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/dispatch/saferef.py b/django/dispatch/saferef.py index c18c7e3c57..8826c476f1 100644 --- a/django/dispatch/saferef.py +++ b/django/dispatch/saferef.py @@ -135,6 +135,7 @@ class BoundMethodWeakref(object): self.selfName = str(target.__self__) self.funcName = str(target.__func__.__name__) + @classmethod def calculateKey(cls, target): """Calculate the reference key for this reference @@ -142,7 +143,6 @@ class BoundMethodWeakref(object): target object and the target function respectively. """ return (id(target.__self__), id(target.__func__)) - calculateKey = classmethod(calculateKey) def __str__(self): """Give a friendly representation of the object""" |
