Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix also Bodo.
  • Loading branch information
serhiy-storchaka committed Oct 9, 2024
commit ef8c18e7d3e7c166676d9d0320cd4fb2e8f6035b
3 changes: 1 addition & 2 deletions Lib/_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ def __find_month_format(self, directive):
full_indices = indices
else:
full_indices &= indices
if self.f_month[m] != self.a_month[m]:
indices = set(_findall(datetime, self.a_month[m]))
indices = set(_findall(datetime, self.a_month[m]))
if abbr_indices is None:
abbr_indices = indices
else:
Expand Down
6 changes: 3 additions & 3 deletions Lib/test/test_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,10 @@ def test_bad_timezone(self):
# * Use non-Gregorian calendar: lo_LA, thai, th_TH.
#
# BUG: Generates regexp that does not match the current date and time
# for az_IR, brx_IN, fa_IR, lzh_TW, my_MM, or_IN, shn_MM.
# for az_IR, fa_IR, lzh_TW, my_MM, or_IN, shn_MM.
@run_with_locales('LC_TIME', 'C', 'en_US', 'fr_FR', 'de_DE', 'ja_JP',
'he_IL', 'eu_ES', 'ar_AE', 'mfe_MU', 'yo_NG',
'csb_PL', 'br_FR', 'gez_ET')
'csb_PL', 'br_FR', 'gez_ET', 'brx_IN')
def test_date_time_locale(self):
# Test %c directive
now = time.time()
Expand All @@ -504,7 +504,7 @@ def test_date_time_locale(self):
# bo_CN, bo_IN, dz_BT, eu_ES, eu_FR.
@run_with_locales('LC_TIME', 'C', 'en_US', 'fr_FR', 'de_DE', 'ja_JP',
'he_IL', 'ar_AE', 'mfe_MU', 'yo_NG',
'csb_PL', 'br_FR', 'gez_ET')
'csb_PL', 'br_FR', 'gez_ET', 'brx_IN')
def test_date_time_locale2(self):
# Test %c directive
self.roundtrip('%c', slice(0, 6), (1900, 1, 1, 0, 0, 0, 0, 1, 0))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Fix :func:`time.strptime` for ``%c`` and ``%x`` format in many locales:
Arabic, Bislama, Breton, Kashubian, Chuvash, Estonian, French, Irish,
Fix :func:`time.strptime` for ``%c`` and ``%x`` formats in many locales:
Arabic, Bislama, Breton, Bodo, Kashubian, Chuvash, Estonian, French, Irish,
Ge'ez, Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol,
Japanese, Kannada, Korean, Marathi, Malay, Norwegian, Nynorsk, Punjabi,
Rajasthani, Tok Pisin, Yoruba, Yue Chinese, Yau/Nungon and Chinese.