mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-16 19:41:06 +03:00
Minor refactor: Unnecessary use of list() function (#8672)
This commit is contained in:
parent
3e51ba4d51
commit
9e398c59ab
|
@ -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 = list(description.splitlines())
|
lines = description.splitlines()
|
||||||
current_section = ''
|
current_section = ''
|
||||||
sections = {'': ''}
|
sections = {'': ''}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user