Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb6d098

Browse files
committed
Remove unused formats
1 parent 560fff3 commit fb6d098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_strptime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
567567
weekday, julian, tz, tzname, gmtoff), fraction, gmtoff_fraction
568568

569569
date_specs = ('%a', '%A', '%b', '%B', '%c', '%d', '%j', '%m', '%U',
570-
'%w', '%W', '%x', '%y', '%Y',)
571-
time_specs = ('%T', '%R', '%H', '%I', '%M', '%S', '%f', '%i', '%s',)
570+
'%w', '%W', '%x', '%y', '%Y', '%G', '%u', '%V',)
571+
time_specs = ('%H', '%I', '%M', '%S', '%f',)
572572

573573
def _strptime_time(data_string, format="%a %b %d %H:%M:%S %Y"):
574574
"""Return a time struct based on the input string and the

0 commit comments

Comments
 (0)