Skip to content

Commit a815443

Browse files
authored
Use warnings.simplefilter instead of filterwarnings (#1352)
1 parent 03efcc3 commit a815443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/raw_building.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def object_build(self, node, obj):
340340
for name in dir(obj):
341341
try:
342342
with warnings.catch_warnings():
343-
warnings.filterwarnings("error")
343+
warnings.simplefilter("error")
344344
member = getattr(obj, name)
345345
except (AttributeError, DeprecationWarning):
346346
# damned ExtensionClass.Base, I know you're there !

0 commit comments

Comments
 (0)