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

from astropy.utils.exceptions import AstropyWarning

__all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
           "OldEarthOrientationDataWarning", "PlotWarning",
           "PlotBelowHorizonWarning"]

class TargetAlwaysUpWarning(AstropyWarning):
    """Target is circumpolar"""
    pass

class TargetNeverUpWarning(AstropyWarning):
    """Target never rises above horizon"""
    pass

class OldEarthOrientationDataWarning(AstropyWarning):
    """Using old Earth rotation data from IERS"""
    pass

class PlotWarning(AstropyWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
    pass

class PlotBelowHorizonWarning(PlotWarning):
    """Warning for when something is hidden on a plot because it's below the horizon"""
    pass

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

from astropy.utils.exceptions import AstropyWarning

__all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
           "OldEarthOrientationDataWarning", "PlotWarning",
           "PlotBelowHorizonWarning"]

class AstroplanWarning(AstropyWarning):
    """Superclass for warnings used by astroplan"""

class TargetAlwaysUpWarning(AstroplanWarning):
    """Target is circumpolar"""
    pass

class TargetNeverUpWarning(AstroplanWarning):
    """Target never rises above horizon"""
    pass

class OldEarthOrientationDataWarning(AstroplanWarning):
    """Using old Earth rotation data from IERS"""
    pass

class PlotWarning(AstroplanWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
    pass

class PlotBelowHorizonWarning(PlotWarning):
    """Warning for when something is hidden on a plot because it's below the horizon"""
    pass

Make all astroplan warnings decend from an AstroplanWarning
Make all astroplan warnings decend from an AstroplanWarning

  from __future__ import (absolute_import, division, print_function,
                          unicode_literals)
  
  from astropy.utils.exceptions import AstropyWarning
  
  __all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
             "OldEarthOrientationDataWarning", "PlotWarning",
             "PlotBelowHorizonWarning"]
  
+ class AstroplanWarning(AstropyWarning):
+     """Superclass for warnings used by astroplan"""
+ 
- class TargetAlwaysUpWarning(AstropyWarning):
+ class TargetAlwaysUpWarning(AstroplanWarning):
      """Target is circumpolar"""
      pass
  
- class TargetNeverUpWarning(AstropyWarning):
+ class TargetNeverUpWarning(AstroplanWarning):
      """Target never rises above horizon"""
      pass
  
- class OldEarthOrientationDataWarning(AstropyWarning):
+ class OldEarthOrientationDataWarning(AstroplanWarning):
      """Using old Earth rotation data from IERS"""
      pass
  
- class PlotWarning(AstropyWarning):
+ class PlotWarning(AstroplanWarning):
      """Warnings dealing with the plotting aspects of astroplan"""
      pass
  
  class PlotBelowHorizonWarning(PlotWarning):
      """Warning for when something is hidden on a plot because it's below the horizon"""
      pass
  
Make all astroplan warnings decend from an AstroplanWarning
## Code Before:
from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

from astropy.utils.exceptions import AstropyWarning

__all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
           "OldEarthOrientationDataWarning", "PlotWarning",
           "PlotBelowHorizonWarning"]

class TargetAlwaysUpWarning(AstropyWarning):
    """Target is circumpolar"""
    pass

class TargetNeverUpWarning(AstropyWarning):
    """Target never rises above horizon"""
    pass

class OldEarthOrientationDataWarning(AstropyWarning):
    """Using old Earth rotation data from IERS"""
    pass

class PlotWarning(AstropyWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
    pass

class PlotBelowHorizonWarning(PlotWarning):
    """Warning for when something is hidden on a plot because it's below the horizon"""
    pass

## Instruction:
Make all astroplan warnings decend from an AstroplanWarning
## Code After:
from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

from astropy.utils.exceptions import AstropyWarning

__all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
           "OldEarthOrientationDataWarning", "PlotWarning",
           "PlotBelowHorizonWarning"]

class AstroplanWarning(AstropyWarning):
    """Superclass for warnings used by astroplan"""

class TargetAlwaysUpWarning(AstroplanWarning):
    """Target is circumpolar"""
    pass

class TargetNeverUpWarning(AstroplanWarning):
    """Target never rises above horizon"""
    pass

class OldEarthOrientationDataWarning(AstroplanWarning):
    """Using old Earth rotation data from IERS"""
    pass

class PlotWarning(AstroplanWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
    pass

class PlotBelowHorizonWarning(PlotWarning):
    """Warning for when something is hidden on a plot because it's below the horizon"""
    pass
