8000 Py2.6 compatibility: missed one set literal · r3m0t/python-future@dded882 · GitHub
[go: up one dir, main page]

Skip to content

Commit dded882

Browse files
committed
Py2.6 compatibility: missed one set literal
1 parent d8de09f commit dded882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/future/types/exceptions/pep3151.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def NotADirectoryError(inst):
9090
@instance_checking_exception(OSError)
9191
def PermissionError(inst):
9292
"""Not enough permissions."""
93-
errnos = {errno.EACCES, errno.EPERM}
93+
errnos = [errno.EACCES, errno.EPERM]
9494
return hasattr(inst, 'errno') and inst.errno in errnos
9595

9696

0 commit comments

Comments
 (0)
0