mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +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())
|
view.get_view_description())
|
||||||
|
|
||||||
def _get_description_section(self, view, header, description):
|
def _get_description_section(self, view, header, description):
|
||||||
lines = [line for line in description.splitlines()]
|
lines = list(description.splitlines())
|
||||||
current_section = ''
|
current_section = ''
|
||||||
sections = {'': ''}
|
sections = {'': ''}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user