Skip to content

Commit 43c8345

Browse files
committed
add %t C99 token to strptime
1 parent 2f7634c commit 43c8345

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/_strptime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,9 @@ def __init__(self, locale_time=None):
382382
'Z': self.__seqToRE((tz for tz_names in self.locale_time.timezone
383383
for tz in tz_names),
384384
'Z'),
385-
'%': '%'}
385+
't': '\t',
386+
'%': '%'
387+
}
386388
if self.locale_time.LC_alt_digits is None:
387389
for d in 'dmyCHIMS':
388390
mapping['O' + d] = r'(?P<%s>\d\d|\d| \d)' % d

0 commit comments

Comments
 (0)