Skip to content

Commit 73f4835

Browse files
authored
Unnecessary list comprehension (#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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy