summaryrefslogtreecommitdiff
path: root/django/dispatch
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-11 07:25:14 -0400
committerTim Graham <timograham@gmail.com>2013-10-11 07:25:14 -0400
commitb67ab75e82ec59dd4eeca119eeaf570d7c88556c (patch)
tree45bb072d08b4d7de7e6b76bf01fcd9bddcb43acd /django/dispatch
parent695bc0d191c126a948a7cf3acc3e37d9377ebd20 (diff)
Fixed assorted flake8 errors.
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,