Skip to content

Commit ef8c18e

Browse files
Fix also Bodo.
1 parent 391296b commit ef8c18e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Lib/_strptime.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ def __find_month_format(self, directive):
194194
full_indices = indices
195195
else:
196196
full_indices &= indices
197-
if self.f_month[m] != self.a_month[m]:
198-
indices = set(_findall(datetime, self.a_month[m]))
197+
indices = set(_findall(datetime, self.a_month[m]))
199198
if abbr_indices is None:
200199
abbr_indices = indices
201200
else:

Lib/test/test_strptime.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ def test_bad_timezone(self):
479479
# * Use non-Gregorian calendar: lo_LA, thai, th_TH.
480480
#
481481
# BUG: Generates regexp that does not match the current date and time
482-
# for az_IR, brx_IN, fa_IR, lzh_TW, my_MM, or_IN, shn_MM.
482+
# for az_IR, fa_IR, lzh_TW, my_MM, or_IN, shn_MM.
483483
@run_with_locales('LC_TIME', 'C', 'en_US', 'fr_FR', 'de_DE', 'ja_JP',
484484
'he_IL', 'eu_ES', 'ar_AE', 'mfe_MU', 'yo_NG',
485-
'csb_PL', 'br_FR', 'gez_ET')
485+
'csb_PL', 'br_FR', 'gez_ET', 'brx_IN')
486486
def test_date_time_locale(self):
487487
# Test %c directive
488488
now = time.time()
@@ -504,7 +504,7 @@ def test_date_time_locale(self):
504504
# bo_CN, bo_IN, dz_BT, eu_ES, eu_FR.
505505
@run_with_locales('LC_TIME', 'C', 'en_US', 'fr_FR', 'de_DE', 'ja_JP',
506506
'he_IL', 'ar_AE', 'mfe_MU', 'yo_NG',
507-
'csb_PL', 'br_FR', 'gez_ET')
507+
'csb_PL', 'br_FR', 'gez_ET', 'brx_IN')
508508
def test_date_time_locale2(self):
509509
# Test %c directive
510510
self.roundtrip('%c', slice(0, 6), (1900, 1, 1, 0, 0, 0, 0, 1, 0))
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Fix :func:`time.strptime` for ``%c`` and ``%x`` format in many locales:
2-
Arabic, Bislama, Breton, Kashubian, Chuvash, Estonian, French, Irish,
1+
Fix :func:`time.strptime` for ``%c`` and ``%x`` formats in many locales:
2+
Arabic, Bislama, Breton, Bodo, Kashubian, Chuvash, Estonian, French, Irish,
33
Ge'ez, Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol,
44
Japanese, Kannada, Korean, Marathi, Malay, Norwegian, Nynorsk, Punjabi,
55
Rajasthani, Tok Pisin, Yoruba, Yue Chinese, Yau/Nungon and Chinese.

0 commit comments

Comments
 (0)