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

Skip to content

Commit f7948c2

Browse files
committed
Convert a listcomp to a gencomp (was already editing code).
1 parent 4f35c71 commit f7948c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/_strptime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ def __init__(self, locale_time=None):
208208
'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'),
209209
'b': self.__seqToRE(self.locale_time.a_month[1:], 'b'),
210210
'p': self.__seqToRE(self.locale_time.am_pm, 'p'),
211-
'Z': self.__seqToRE([tz for tz_names in self.locale_time.timezone
212-
for tz in tz_names],
211+
'Z': self.__seqToRE((tz for tz_names in self.locale_time.timezone
212+
for tz in tz_names),
213213
'Z'),
214214
'%': '%'})
215215
base.__setitem__('W', base.__getitem__('U'))

0 commit comments

Comments
 (0)