summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.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/mailbox.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/mailbox.py')
-rw-r--r--Lib/mailbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index 2eee76c..145b204 100644
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -1230,8 +1230,8 @@ class MH(Mailbox):
class Babyl(_singlefileMailbox):
"""An Rmail-style Babyl mailbox."""
- _special_labels = frozenset(('unseen', 'deleted', 'filed', 'answered',
- 'forwarded', 'edited', 'resent'))
+ _special_labels = frozenset({'unseen', 'deleted', 'filed', 'answered',
+ 'forwarded', 'edited', 'resent'})
def __init__(self, path, factory=None, create=True):
"""Initialize a Babyl mailbox."""