Skip to content

Commit c1fee3b

Browse files
committed
gh-35056: Minor documentation formating and punctuation fixes.
1 parent 46c1c91 commit c1fee3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ http.server
837837
HTTP responses.
838838
(Contributed by Anton I. Sipos in :gh:`135057`.)
839839

840-
* Add a ``-H`` or ``--header`` flag to the :program:`python -m http.server`
840+
* Add a ``-H/--header`` option to the :program:`python -m http.server`
841841
command-line interface to support custom headers in HTTP responses.
842842
(Contributed by Anton I. Sipos in :gh:`135057`.)
843843

Lib/http/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def do_HEAD(self):
758758
f.close()
759759

760760
def _send_extra_response_headers(self):
761-
"""Send the headers stored in self.extra_response_headers"""
761+
"""Send the headers stored in self.extra_response_headers."""
762762
if self.extra_response_headers is not None:
763763
for header, value in self.extra_response_headers:
764764
self.send_header(header, value)

0 commit comments

Comments
 (0)