diff options
author | Raymond Hettinger <python@rcn.com> | 2014-11-09 23:56:33 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-11-09 23:56:33 (GMT) |
commit | df1b69944796caa6854049caf624d32c408c27d5 (patch) | |
tree | 655332d48c8fd87bbc06e5e624238342c4ebdb94 /Lib/asyncore.py | |
parent | bf764a1912b084e5fc9acd6cb160e66060bc368a (diff) | |
download | cpython-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/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index da24b38..68efd45 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -57,8 +57,8 @@ from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, EINVAL, \ ENOTCONN, ESHUTDOWN, EISCONN, EBADF, ECONNABORTED, EPIPE, EAGAIN, \ errorcode -_DISCONNECTED = frozenset((ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED, EPIPE, - EBADF)) +_DISCONNECTED = frozenset({ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED, EPIPE, + EBADF}) try: socket_map @@ -220,7 +220,7 @@ class dispatcher: connecting = False closing = False addr = None - ignore_log_types = frozenset(['warning']) + ignore_log_types = frozenset({'warning'}) def __init__(self, sock=None, map=None): if map is None: |