diff options
Diffstat (limited to 'astroid/brain/brain_six.py')
-rw-r--r-- | astroid/brain/brain_six.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/brain/brain_six.py b/astroid/brain/brain_six.py index 3b2b945..1c0ddf6 100644 --- a/astroid/brain/brain_six.py +++ b/astroid/brain/brain_six.py @@ -23,7 +23,7 @@ from textwrap import dedent from astroid import MANAGER, register_module_extender from astroid.builder import AstroidBuilder -from astroid.exceptions import AstroidBuildingException, InferenceError +from astroid.exceptions import AstroidBuildingError, InferenceError from astroid import nodes @@ -254,7 +254,7 @@ def six_moves_transform(): def _six_fail_hook(modname): if modname != 'six.moves': - raise AstroidBuildingException(modname=modname) + raise AstroidBuildingError(modname=modname) module = AstroidBuilder(MANAGER).string_build(_IMPORTS) module.name = 'six.moves' return module |