diff options
| author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-01-16 19:41:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-16 19:41:20 +0100 |
| commit | a815443f62faae05249621a396dcf0afd884a619 (patch) | |
| tree | a9eccc64654424e7ab07e51a3db536974db150f6 | |
| parent | 03efcc3f86b88bab3080fe69119ee4c69e4afd0a (diff) | |
| download | astroid-git-a815443f62faae05249621a396dcf0afd884a619.tar.gz | |
Use ``warnings.simplefilter`` instead of ``filterwarnings`` (#1352)
| -rw-r--r-- | astroid/raw_building.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/raw_building.py b/astroid/raw_building.py index 6cd1a792..755f00e8 100644 --- a/astroid/raw_building.py +++ b/astroid/raw_building.py @@ -340,7 +340,7 @@ class InspectBuilder: for name in dir(obj): try: with warnings.catch_warnings(): - warnings.filterwarnings("error") + warnings.simplefilter("error") member = getattr(obj, name) except (AttributeError, DeprecationWarning): # damned ExtensionClass.Base, I know you're there ! |
