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