Skip to content

Commit 9756b59

Browse files
authored
Fix lint (#8246)
IOError is an alias to OSError in Python 3.3+.
1 parent a8913d8 commit 9756b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def read_py_file(path: str, read: Callable[[str], bytes],
142142
"""
143143
try:
144144
source = read(path)
145-
except (IOError, OSError):
145+
except OSError:
146146
return None
147147
else:
148148
try:

0 commit comments

Comments
 (0)