Skip to content

Commit a3cc8a5

Browse files
committed
Fix Python 3.5 compatibility
1 parent 10c292f commit a3cc8a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rest_framework/viewsets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def _is_extra_action(attr):
3434

3535
def _check_attr_name(func, name):
3636
assert func.__name__ == name, (
37-
f'Expected function (`{func.__name__}`) to match its attribute name '
38-
f'(`{name}`). If using a decorator, ensure the inner function is '
39-
f'decorated with `functools.wraps`, or that `{func.__name__}.__name__` '
40-
f'is otherwise set to `{name}`.')
37+
'Expected function (`{func.__name__}`) to match its attribute name '
38+
'(`{name}`). If using a decorator, ensure the inner function is '
39+
'decorated with `functools.wraps`, or that `{func.__name__}.__name__` '
40+
'is otherwise set to `{name}`.').format(func=func, name=name)
4141
return func
4242

4343

0 commit comments

Comments
 (0)