mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed assorted flake8 errors.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user