Skip to content

Commit

Permalink
Docstring edit
Browse files Browse the repository at this point in the history
  • Loading branch information
zuo committed Oct 1, 2024
1 parent 8eac106 commit 1956662
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Lib/_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,15 @@ def __pattern_with_lax_year(self, format):
Necessary to ensure that strptime() is able to parse strftime()'s
output when %c or %x is used -- considering that for some locales
and platforms (e.g., 'C.UTF-8' on Linux), formatting with either
%c or %x may produce a year number representation that is shorter
than the usual four or two digits, if the number is small enough
(e.g., '999' rather than `0999', or '9' rather than of '09').
and platforms (e.g., 'C.UTF-8' on Linux) formatting with either
%c or %x may produce a year number representation which is *not*
zero-padded and, consequently (if the number is small enough),
shorter than the usual four or two digits (e.g., '999' rather
than `0999', or '9' rather than of '09').
Note that this helper is intended to be used to prepare regex
patterns only for the `%c` and `%x` format codes (and *not* for
`%y`, `%Y` or `%G`).
patterns *only* for the `%c` and `%x` format codes (and *not*
for `%y`, `%Y` or `%G`).
"""
pattern = self.pattern(format)
Expand Down

0 comments on commit 1956662

Please sign in to comment.