mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Unnecessary list comprehension (#8670)
This commit is contained in:
parent
2de5081829
commit
73f4835a53
|
@ -88,7 +88,7 @@ class ViewInspector:
|
|||
view.get_view_description())
|
||||
|
||||
def _get_description_section(self, view, header, description):
|
||||
lines = [line for line in description.splitlines()]
|
||||
lines = list(description.splitlines())
|
||||
current_section = ''
|
||||
sections = {'': ''}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user