diff options
author | 2014-11-09 15:56:33 -0800 | |
---|---|---|
committer | 2014-11-09 15:56:33 -0800 | |
commit | df1b69944796caa6854049caf624d32c408c27d5 (patch) | |
tree | 655332d48c8fd87bbc06e5e624238342c4ebdb94 /Lib/asyncore.py | |
parent | Issue #22695: Fix rendering of the deprecated-removed role in HTML. (diff) | |
download | cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.gz cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.bz2 cpython-df1b69944796caa6854049caf624d32c408c27d5.zip |
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 da24b3843b3..68efd45f858 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: |