Skip to content

Commit 73f4835

Browse files
authored
Unnecessary list comprehension (encode#8670)
1 parent 2de5081 commit 73f4835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/schemas/inspectors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_description(self, path, method):
8888
view.get_view_description())
8989

9090
def _get_description_section(self, view, header, description):
91-
lines = [line for line in description.splitlines()]
91+
lines = list(description.splitlines())
9292
current_section = ''
9393
sections = {'': ''}
9494

0 commit comments

Comments
 (0)