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