Skip to content

Commit b06c8ea

Browse files
committed
Fix Python 3.5 compatibility
1 parent ed733b7 commit b06c8ea

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
@@ -35,10 +35,10 @@ def _is_extra_action(attr):
3535

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

4444

0 commit comments

Comments
 (0)