Context manager to ignore deprecation warnings.
()
| 87 | |
| 88 | @contextlib.contextmanager |
| 89 | def ignore_deprecation(): |
| 90 | """Context manager to ignore deprecation warnings.""" |
| 91 | with warnings.catch_warnings(): |
| 92 | warnings.simplefilter("ignore", DeprecationWarning) |
| 93 | yield |
| 94 | |
| 95 | |
| 96 | ABT_SKIP_MESSAGE = "abstract base class" |
no outgoing calls