summaryrefslogtreecommitdiffstats
path: root/Lib/_strptime.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-11-09 23:56:33 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-11-09 23:56:33 (GMT)
commitdf1b69944796caa6854049caf624d32c408c27d5 (patch)
tree655332d48c8fd87bbc06e5e624238342c4ebdb94 /Lib/_strptime.py
parentbf764a1912b084e5fc9acd6cb160e66060bc368a (diff)
downloadcpython-df1b69944796caa6854049caf624d32c408c27d5.zip
cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.gz
cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.bz2
Issue #22823: Use set literals instead of creating a set from a list
Diffstat (limited to 'Lib/_strptime.py')
-rw-r--r--Lib/_strptime.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index 53bd34b..42f23d3 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -167,9 +167,9 @@ class LocaleTime(object):
time.tzset()
except AttributeError:
pass
- no_saving = frozenset(["utc", "gmt", time.tzname[0].lower()])
+ no_saving = frozenset({"utc", "gmt", time.tzname[0].lower()})
if time.daylight:
- has_saving = frozenset([time.tzname[1].lower()])
+ has_saving = frozenset({time.tzname[1].lower()})
else:
has_saving = frozenset()
self.timezone = (no_saving, has_saving)