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