Skip to content

Commit 781a2d7

Browse files
committed
Remove set literals for Py2.6 compatibility
1 parent 4fa7019 commit 781a2d7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/future/types/exceptions/pep3151.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
@instance_checking_exception(OSError)
1414
def BlockingOSError(inst):
1515
"""I/O operation would block."""
16-
errnos = {errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK,
17-
errno.EINPROGRESS}
16+
errnos = [errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK,
17+
errno.EINPROGRESS]
1818
return hasattr(inst, 'errno') and inst.errno in errnos
1919

2020

2121
@instance_checking_exception(OSError)
2222
def BrokenPipeError(inst):
2323
"""Broken pipe."""
24-
errnos = {errno.EPIPE, errno.ESHUTDOWN}
24+
errnos = [errno.EPIPE, errno.ESHUTDOWN]
2525
return hasattr(inst, 'errno') and inst.errno in errnos
2626

2727

@@ -34,8 +34,8 @@ def ChildProcessError(inst):
3434
@instance_checking_exception(OSError)
3535
def ConnectionError(inst):
3636
"""Connection error."""
37-
errnos = {errno.EPIPE, errno.ESHUTDOWN, errno.ECONNABORTED,
38-
errno.ECONNREFUSED, errno.ECONNRESET}
37+
errnos = [errno.EPIPE, errno.ESHUTDOWN, errno.ECONNABORTED,
38+
errno.ECONNREFUSED, errno.ECONNRESET]
3939
return hasattr(inst, 'errno') and inst.errno in errnos
4040

4141

0 commit comments

Comments
 (0)