Skip to content

Commit c674612

Browse files
committed
init %n support for strptime
1 parent e9927fb commit c674612

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/_strptime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ 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+
'n': r'\s*',
385386
't': r'\s*',
386387
'%': '%'
387388
}

0 commit comments

Comments
 (0)