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-21 19:06:16 +0100
commite2530abf4a30a6195ea8d8f22e7ee41c8893f6ff (patch)
tree5377b38ce8a65489d1617be41a3e1141f2670804 /astroid/builder.py
parentb47b56dedba6c845925076d0dd07e373dac03d3a (diff)
downloadastroid-git-e2530abf4a30a6195ea8d8f22e7ee41c8893f6ff.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,