from __future__ import (absolute_import, division, print_function,
                        unicode_literals)


class AstropyWarning(Warning):
    """
    The base warning class from which all Astropy warnings should inherit.

    Any warning inheriting from this class is handled by the Astropy logger.
    """


class AstropyUserWarning(UserWarning, AstropyWarning):
    """
    The primary warning class for Astropy.

    Use this if you do not need a specific sub-class.
    """


class AstropyDeprecationWarning(DeprecationWarning, AstropyWarning):
    """
    A warning class to indicate a deprecated feature.
    """


class AstropyPendingDeprecationWarning(PendingDeprecationWarning, AstropyWarning):
    """
    A warning class to indicate a soon-to-be deprecated feature.
    """


class AstropyBackwardsIncompatibleChangeWarning(AstropyWarning):
    """
    A warning class indicating a change in astropy that is incompatible
    with previous versions.

    The suggested procedure is to issue this warning for the version in
    which the change occurs, and remove it for all following versions.
    """

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)


class AstropyWarning(Warning):
    """
    The base warning class from which all Astropy warnings should inherit.

    Any warning inheriting from this class is handled by the Astropy logger.
    """


class AstropyUserWarning(UserWarning, AstropyWarning):
    """
    The primary warning class for Astropy.

    Use this if you do not need a specific sub-class.
    """


class AstropyDeprecationWarning(AstropyWarning):
    """
    A warning class to indicate a deprecated feature.
    """


class AstropyPendingDeprecationWarning(PendingDeprecationWarning, AstropyWarning):
    """
    A warning class to indicate a soon-to-be deprecated feature.
    """


class AstropyBackwardsIncompatibleChangeWarning(AstropyWarning):
    """
    A warning class indicating a change in astropy that is incompatible
    with previous versions.

    The suggested procedure is to issue this warning for the version in
    which the change occurs, and remove it for all following versions.
    """

Remove DeprecationWarning superclass for AstropyDeprecationWarning
Remove DeprecationWarning superclass for AstropyDeprecationWarning

we do this because in py2.7, DeprecationWarning and subclasses are hidden by default, but we want astropy's deprecations to get shown by default

  from __future__ import (absolute_import, division, print_function,
                          unicode_literals)
  
  
  class AstropyWarning(Warning):
      """
      The base warning class from which all Astropy warnings should inherit.
  
      Any warning inheriting from this class is handled by the Astropy logger.
      """
  
  
  class AstropyUserWarning(UserWarning, AstropyWarning):
      """
      The primary warning class for Astropy.
  
      Use this if you do not need a specific sub-class.
      """
  
  
- class AstropyDeprecationWarning(DeprecationWarning, AstropyWarning):
+ class AstropyDeprecationWarning(AstropyWarning):
      """
      A warning class to indicate a deprecated feature.
      """
  
  
  class AstropyPendingDeprecationWarning(PendingDeprecationWarning, AstropyWarning):
      """
      A warning class to indicate a soon-to-be deprecated feature.
      """
  
  
  class AstropyBackwardsIncompatibleChangeWarning(AstropyWarning):
      """
      A warning class indicating a change in astropy that is incompatible
      with previous versions.
  
      The suggested procedure is to issue this warning for the version in
      which the change occurs, and remove it for all following versions.
      """
  
Remove DeprecationWarning superclass for AstropyDeprecationWarning
## Code Before:
from __future__ import (absolute_import, division, print_function,
                        unicode_literals)


class AstropyWarning(Warning):
    """
    The base warning class from which all Astropy warnings should inherit.

    Any warning inheriting from this class is handled by the Astropy logger.
    """


class AstropyUserWarning(UserWarning, AstropyWarning):
    """
    The primary warning class for Astropy.

    Use this if you do not need a specific sub-class.
    """


class AstropyDeprecationWarning(DeprecationWarning, AstropyWarning):
    """
    A warning class to indicate a deprecated feature.
    """


class AstropyPendingDeprecationWarning(PendingDeprecationWarning, AstropyWarning):
    """
    A warning class to indicate a soon-to-be deprecated feature.
    """


class AstropyBackwardsIncompatibleChangeWarning(AstropyWarning):
    """
    A warning class indicating a change in astropy that is incompatible
    with previous versions.

    The suggested procedure is to issue this warning for the version in
    which the change occurs, and remove it for all following versions.
    """

## Instruction:
Remove DeprecationWarning superclass for AstropyDeprecationWarning
## Code After:
from __future__ import (absolute_import, division, print_function,
                        unicode_literals)


class AstropyWarning(Warning):
    """
    The base warning class from which all Astropy warnings should inherit.

    Any warning inheriting from this class is handled by the Astropy logger.
    """


class AstropyUserWarning(UserWarning, AstropyWarning):
    """
    The primary warning class for Astropy.

    Use this if you do not need a specific sub-class.
    """


class AstropyDeprecationWarning(AstropyWarning):
    """
    A warning class to indicate a deprecated feature.
    """


class AstropyPendingDeprecationWarning(PendingDeprecationWarning, AstropyWarning):
    """
    A warning class to indicate a soon-to-be deprecated feature.
    """


class AstropyBackwardsIncompatibleChangeWarning(AstropyWarning):
    """
    A warning class indicating a change in astropy that is incompatible
    with previous versions.

    The suggested procedure is to issue this warning for the version in
    which the change occurs, and remove it for all following versions.
    """
