Skip to content

Commit e26f097

Browse files
Remove AstroidBuildingException (predecessor of AstroidBuildingError) (#2384)
astroid 1.5 announced that this name would be removed in 2.0
1 parent 41d9196 commit e26f097

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Release date: TBA
2222
to the ``PartialFunction`` and ``Property`` constructors have been removed (call
2323
``postinit(doc_node=...)`` instead.)
2424

25+
* Following a deprecation announced in astroid 1.5.0, the alias ``AstroidBuildingException`` is removed in favor of ``AstroidBuildingError``.
26+
2527
* Include modname in AST warnings. Useful for ``invalid escape sequence`` warnings
2628
with Python 3.12.
2729

astroid/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
from astroid.const import PY310_PLUS, Context
4848
from astroid.exceptions import (
4949
AstroidBuildingError,
50-
AstroidBuildingException,
5150
AstroidError,
5251
AstroidImportError,
5352
AstroidIndexError,

astroid/exceptions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
__all__ = (
1919
"AstroidBuildingError",
20-
"AstroidBuildingException",
2120
"AstroidError",
2221
"AstroidImportError",
2322
"AstroidIndexError",
@@ -415,4 +414,3 @@ def __init__(self, target: nodes.NodeNG) -> None:
415414
SuperArgumentTypeError = SuperError
416415
UnresolvableName = NameInferenceError
417416
NotFoundError = AttributeInferenceError
418-
AstroidBuildingException = AstroidBuildingError

doc/api/astroid.exceptions.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Exceptions
88
.. autosummary::
99

1010
AstroidBuildingError
11-
AstroidBuildingException
1211
AstroidError
1312
AstroidImportError
1413
AstroidIndexError

0 commit comments

Comments
 (0)