Skip to content

Commit d30efdd

Browse files
committed
gh-153677: Trim the comment and NEWS wording
1 parent 09c98be commit d30efdd

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/http/cookiejar.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ def http2time(text):
265265
try:
266266
mon = MONTHS_LOWER.index(g[1].lower()) + 1
267267
except ValueError:
268-
# The month field matched the pattern but is not a real month
269-
# name, so fall through to the slower parser.
268+
# Not a real month name; fall through to the slower parser.
270269
pass
271270
else:
272271
tt = (int(g[2]), mon, int(g[0]),
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
:func:`!http.cookiejar.http2time` now returns ``None`` instead of raising
2-
:exc:`ValueError` when the date string matches its strict fast-path pattern
3-
but names a month that does not exist. Patch by tonghuaroot.
2+
:exc:`ValueError` for a strictly-formatted date with a non-existent month
3+
name. Patch by tonghuaroot.

0 commit comments

Comments
 (0)