315
330
:param override: If True, always set the ignore, if False, only set the
316
331
ignore if there isn't already a filter.
317
333
:return: A callable to remove the new warnings this added.
320
335
if not override and _check_for_filter(error_only=False):
321
336
# If there is already a filter effecting suppress_deprecation_warnings,
331
345
def activate_deprecation_warnings(override=True):