We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2a57c4 commit eb163e4Copy full SHA for eb163e4
Lib/_strptime.py
@@ -626,12 +626,6 @@ def parse_int(s):
626
elif century == 0:
627
# ValueError fix, since MINYEAR = 1 in Lib/_pydatetime.py
628
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)
635
elif group_key == 'Y':
636
year = int(found_dict['Y'])
637
elif group_key == 'G':
0 commit comments