mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Unnecessary list comprehension
This commit is contained in:
parent
2de5081829
commit
c151b78271
|
@ -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