Context manager to ignore deprecation warnings.
()
| 108 | |
| 109 | @contextlib.contextmanager |
| 110 | def ignore_deprecation(): |
| 111 | """Context manager to ignore deprecation warnings.""" |
| 112 | with warnings.catch_warnings(): |
| 113 | warnings.simplefilter("ignore", DeprecationWarning) |
| 114 | yield |
no outgoing calls