summaryrefslogtreecommitdiff
path: root/django/dispatch
diff options
context:
space:
mode:
Diffstat (limited to 'django/dispatch')
-rw-r--r--django/dispatch/saferef.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/dispatch/saferef.py b/django/dispatch/saferef.py
index c7731d41fe..b816e71159 100644
--- a/django/dispatch/saferef.py
+++ b/django/dispatch/saferef.py
@@ -23,7 +23,7 @@ def safeRef(target, onDelete = None):
if target.__self__ is not None:
# Turn a bound method into a BoundMethodWeakref instance.
# Keep track of these instances for lookup by disconnect().
- assert hasattr(target, '__func__'), """safeRef target %r has __self__, but no __func__, don't know how to create reference"""%( target,)
+ assert hasattr(target, '__func__'), """safeRef target %r has __self__, but no __func__, don't know how to create reference""" % (target,)
reference = get_bound_method_weakref(
target=target,
onDelete=onDelete
@@ -144,7 +144,7 @@ class BoundMethodWeakref(object):
def __str__(self):
"""Give a friendly representation of the object"""
- return """%s( %s.%s )"""%(
+ return """%s( %s.%s )""" % (
self.__class__.__name__,
self.selfName,
self.funcName,