352
352
"""Call this function to suppress all deprecation warnings.
354
354
When this is a final release version, we don't want to annoy users with
355
355
lots of deprecation warnings. We only want the deprecation warnings when
356
356
running a dev or release candidate.
358
:param override: If True, always set the ignore, if False, only set the
360
363
# If there is already a filter effecting suppress_deprecation_warnings,
363
366
warnings.filterwarnings('ignore', category=DeprecationWarning)
367
370
"""Call this function to activate deprecation warnings.
369
372
When running in a 'final' release we suppress deprecation warnings.