summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-17 23:23:48 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-17 23:51:41 +0100
commit0b17c79b15c5598a0795baea576656d92dedbcd3 (patch)
treebc6b841c855acd3cff52151049b1f2e8cd61a8fa /astroid/builder.py
parent688876e2312ac5b43aca8e6369591897939577a9 (diff)
downloadastroid-git-0b17c79b15c5598a0795baea576656d92dedbcd3.tar.gz
Remove IOError that are an alias to OSError see PEP3151
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index 86cba8b1..61e5e7f9 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -106,7 +106,7 @@ class AstroidBuilder(raw_building.InspectBuilder):
"""
try:
stream, encoding, data = open_source_file(path)
- except IOError as exc:
+ except OSError as exc:
raise exceptions.AstroidBuildingError(
"Unable to load file {path}:\n{error}",
modname=modname,