def enable_deprecations_as_exceptions(include_astropy_deprecations=True):
 global _deprecations_as_exceptions
 _deprecations_as_exceptions = True
 global _include_astropy_deprecations
 _include_astropy_deprecations = include_astropy_deprecations

def enable_deprecations_as_exceptions ( include_astropy_deprecations = True ) : global _deprecations_as_exceptions _deprecations_as_exceptions = True global _include_astropy_deprecations _include_astropy_deprecations = include_astropy_deprecations
turn on the feature that turns deprecations into exceptions .