diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-10-06 02:23:14 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-10-06 02:23:14 (GMT) |
commit | f7948c25a2888e1d09eecc383305b4cbe2f43f58 (patch) | |
tree | 607429d5bf5bbe3d877f14ad03ab9e419359877c /Lib | |
parent | 4f35c71543f5dc0023590676c21b18b1a3a5986f (diff) | |
download | cpython-f7948c25a2888e1d09eecc383305b4cbe2f43f58.zip cpython-f7948c25a2888e1d09eecc383305b4cbe2f43f58.tar.gz cpython-f7948c25a2888e1d09eecc383305b4cbe2f43f58.tar.bz2 |
Convert a listcomp to a gencomp (was already editing code).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/_strptime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py index d93139e..5300570 100644 --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -208,8 +208,8 @@ class TimeRE(dict): 'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'), 'b': self.__seqToRE(self.locale_time.a_month[1:], 'b'), 'p': self.__seqToRE(self.locale_time.am_pm, 'p'), - 'Z': self.__seqToRE([tz for tz_names in self.locale_time.timezone - for tz in tz_names], + 'Z': self.__seqToRE((tz for tz_names in self.locale_time.timezone + for tz in tz_names), 'Z'), '%': '%'}) base.__setitem__('W', base.__getitem__('U')) |