mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-29 09:30:07 +03:00
some small typo fixes
This commit is contained in:
parent
ec1b14174f
commit
93f7b98f70
|
@ -421,7 +421,7 @@ class AutoSchema(ViewInspector):
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if header_regex.match(line):
|
if header_regex.match(line):
|
||||||
current_section, seperator, lead = line.partition(':')
|
current_section, _, lead = line.partition(':')
|
||||||
sections[current_section] = lead.strip()
|
sections[current_section] = lead.strip()
|
||||||
else:
|
else:
|
||||||
sections[current_section] += '\n' + line
|
sections[current_section] += '\n' + line
|
||||||
|
|
Loading…
Reference in New Issue
Block a user