σ
ίΘ[c           @` s   d  Z  d d l m Z m Z m Z m Z e   Z d   Z e   d d l	 m
 Z m Z e  d k	 r e  e e    7Z  e  e e    7Z  n  d   Z d S(   uό  
This package defines deprecated units.

These units are not available in the top-level `astropy.units`
namespace. To use these units, you must import the `astropy.units.deprecated`
module::

    >>> from astropy.units import deprecated
    >>> q = 10. * deprecated.emu  # doctest: +SKIP

To include them in `~astropy.units.UnitBase.compose` and the results of
`~astropy.units.UnitBase.find_equivalent_units`, do::

    >>> from astropy.units import deprecated
    >>> deprecated.enable()  # doctest: +SKIP

i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsc          C` s½   d d l  m }  d d l  m } d d l m } m } | d g |  j d t d d | | j d t d	 t	 | | j
 d t d	 t	 | | j d t d	 t	 | | j d t d	 t	 d  S(
   Ni   (   t   cgs(   t	   astrophys(   t   def_unitt   _add_prefixesu   emut	   namespacet   docu   Biot: CGS (EMU) unit of currentt   prefixes(   t    R   R   t   coreR   R   t   Bit   _nst   jupiterMasst   Truet	   earthMasst
   jupiterRadt   earthRad(   R   R   R   R   (    (    s7   lib/python2.7/site-packages/astropy/units/deprecated.pyt   _initialize_module   s    i   (   t   generate_unit_summaryt    generate_prefixonly_unit_summaryc          C` s/   d d l  m }  d d l } |  | j t   S(   u   
    Enable deprecated units so they appear in results of
    `~astropy.units.UnitBase.find_equivalent_units` and
    `~astropy.units.UnitBase.compose`.

    This may be used with the ``with`` statement to enable deprecated
    units only temporarily.
    i   (   t   add_enabled_unitsi    N(   R   R   t   inspectt	   getmodulet   enable(   R   R   (    (    s7   lib/python2.7/site-packages/astropy/units/deprecated.pyR   9   s    
N(   t   __doc__t
   __future__R    R   R   R   t   globalsR   R   t   utilsR   t   _generate_unit_summaryR   t!   _generate_prefixonly_unit_summaryt   NoneR   (    (    (    s7   lib/python2.7/site-packages/astropy/units/deprecated.pyt   <module>   s   "		