Skip to content

Commit eb163e4

Browse files
committed
remove exception branch
1 parent b2a57c4 commit eb163e4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Lib/_strptime.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -626,12 +626,6 @@ def parse_int(s):
626626
elif century == 0:
627627
# ValueError fix, since MINYEAR = 1 in Lib/_pydatetime.py
628628
year = 1
629-
else:
630-
# in line with other format directives, negative numbers
631-
# are not supported by the regular expression;
632-
# this branch will not trigger!
633-
msg = f"Negative century unsupported ({found_dict[group_key]})"
634-
raise ValueError(msg)
635629
elif group_key == 'Y':
636630
year = int(found_dict['Y'])
637631
elif group_key == 'G':

0 commit comments

Comments
 (0)