Skip to content

Commit 391296b

Browse files
Fix also Ge'ez.
1 parent 39e16b5 commit 391296b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def __init__(self, locale_time=None):
273273
'd': r"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])",
274274
'f': r"(?P<f>[0-9]{1,6})",
275275
'H': r"(?P<H>2[0-3]|[0-1]\d|\d)",
276-
'I': r"(?P<I>1[0-2]|0[1-9]|[1-9])",
276+
'I': r"(?P<I>1[0-2]|0[1-9]|[1-9]| [1-9])",
277277
'G': r"(?P<G>\d\d\d\d)",
278278
'j': r"(?P<j>36[0-6]|3[0-5]\d|[1-2]\d\d|0[1-9]\d|00[1-9]|[1-9]\d|0[1-9]|[1-9])",
279279
'm': r"(?P<m>1[0-2]|0[1-9]|[1-9])",

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, gez_ER, gez_ET, lzh_TW, my_MM, or_IN, shn_MM.
482+
# for az_IR, brx_IN, 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')
485+
'csb_PL', 'br_FR', 'gez_ET')
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')
507+
'csb_PL', 'br_FR', 'gez_ET')
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Fix :func:`time.strptime` for ``%c`` and ``%x`` format in many locales:
22
Arabic, Bislama, Breton, Kashubian, Chuvash, Estonian, French, Irish,
3-
Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol,
3+
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)