
P'^c           @@ s  d  Z  d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l	 Z	 d d l
 Z
 d d l m Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m Z d d	 l m Z m Z m Z d d
 l m Z d d l m Z m Z d d l  m! Z! m" Z" m# Z# d d l$ m% Z% m& Z& m' Z' d d l( m) Z) d d l( m* Z* d d l( m+ Z+ m, Z, d d l- m. Z. m/ Z/ y
 e0 Z1 Wn e2 k
 rn Xx' e e f D] Z3 e	 j4 d e3 d  qWd Z5 e j6 d  Z7 e j6 d  Z8 d d d d d d d g Z9 d e: f d     YZ; d e; f d      YZ< d! e= f d"     YZ> d# e f d$     YZ? d% e= f d&     YZ@ eA eA d'  ZB d S((   u  

.. _preload-options:

Preload Options
---------------

These options are supported by all commands,
and usually parsed before command-specific arguments.

.. cmdoption:: -A, --app

    app instance to use (e.g. module.attr_name)

.. cmdoption:: -b, --broker

    url to broker.  default is 'amqp://guest@localhost//'

.. cmdoption:: --loader

    name of custom loader class to use.

.. cmdoption:: --config

    Name of the configuration module

.. _daemon-options:

Daemon Options
--------------

These options are supported by commands that can detach
into the background (daemon).  They will be present
in any command that also has a `--detach` option.

.. cmdoption:: -f, --logfile

    Path to log file. If no logfile is specified, `stderr` is used.

.. cmdoption:: --pidfile

    Optional file used to store the process pid.

    The program will not start if this file already exists
    and the pid is still alive.

.. cmdoption:: --uid

    User id, or user name of the user to run as after detaching.

.. cmdoption:: --gid

    Group id, or group name of the main group to change to after
    detaching.

.. cmdoption:: --umask

    Effective umask (in octal) of the process after detaching.  Inherits
    the umask of the parent process by default.

.. cmdoption:: --workdir

    Optional directory to change to after detaching.

.. cmdoption:: --executable

    Executable to use for the detached process.

i    (   t   absolute_importt   print_functiont   unicode_literalsN(   t   defaultdict(   t   heappush(   t
   getargspec(   t   OptionParsert   IndentedHelpFormattert   make_option(   t   pformat(   t   VERSION_BANNERt   Celeryt   maybe_patch_concurrency(   t   signals(   t   CDeprecationWarningt   CPendingDeprecationWarning(   t   itemst   stringt   string_t(   t
   EX_FAILUREt   EX_OKt   EX_USAGE(   t   term(   t   text(   t   node_formatt   host_format(   t   symbol_by_namet   import_from_cwdu   onceu7   
Unrecognized command-line arguments: {0}

Try --help?
u   .+?(--.+?)(?:\s|,|$)u   :\w+:`(.+?)`u   Erroru
   UsageErroru
   Extensionsu   HelpFormatteru   Commandu   Optionu   daemon_optionst   Errorc           B@ s)   e  Z e Z d d   Z d   Z e Z RS(   c         C@ sD   | |  _  | d  k	 r | n |  j |  _ t t |   j | |  d  S(   N(   t   reasont   Nonet   statust   superR   t   __init__(   t   selfR   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR!   y   s    	c         C@ s   |  j  S(   N(   R   (   R"   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   __str__~   s    N(   t   __name__t
   __module__R   R   R   R!   R#   t   __unicode__(    (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   v   s   	t
   UsageErrorc           B@ s   e  Z e Z RS(    (   R$   R%   R   R   (    (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR'      s   t
   Extensionsc           B@ s#   e  Z d    Z d   Z d   Z RS(   c         C@ s   g  |  _  | |  _ | |  _ d  S(   N(   t   namest	   namespacet   register(   R"   R*   R+   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR!      s    		c         C@ s'   t  |  j |  |  j | d | d  S(   Nt   name(   R   R)   R+   (   R"   t   clsR,   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   add   s    c         C@ s   y d d l  m } Wn t k
 r( d  SXx | |  j  D]} } d j | j | j d g  } y t |  } Wn2 t t f k
 r } t	 j
 d j | |   q9 X|  j | | j  q9 W|  j S(   Ni    (   t   iter_entry_pointsu   :u"   Cannot load extension {0!r}: {1!r}(   t   pkg_resourcesR/   t   ImportErrorR*   t   joint   module_namet   attrsR   t   SyntaxErrort   warningst   warnt   formatR.   R,   R)   (   R"   R/   t   ept   symR-   t   exc(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   load   s    (   R$   R%   R!   R.   R<   (    (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR(      s   		t   HelpFormatterc           B@ s   e  Z d    Z d   Z RS(   c         C@ s   | r d j  |  Sd S(   Nu   
{0}

u    (   R8   (   R"   t   epilog(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   format_epilog   s    c         C@ s%   t  j t  j t  j |  |  j   S(   N(   R   t   ensure_2linest   fill_paragraphst   dedentt   width(   R"   t   description(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   format_description   s    (   R$   R%   R?   RE   (    (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR=      s   	t   Commandc           B@ s  e  Z d  Z e Z e Z e Z d Z e Z	 e
 Z dA Z dB Z e
 Z e d d d dB e d d d dB e d d dB e d d dB e d	 d dB d
 d e d d d d d dB e d d d d f Z e Z d Z dB Z d Z e
 Z e
 Z e
 Z d Z dB dB e dB dB e dB dB d  Z d   Z d   Z d   Z d   Z d   Z  d d  Z! dB d  Z" dB dB d  Z# dB d  Z$ d   Z% d   Z& d    Z' dB d!  Z( dB d"  Z) d#   Z* d$   Z+ d%   Z, dB d&  Z- e. d'  Z/ d(   Z0 dB d)  Z1 dB d*  Z2 d+   Z3 d,   Z4 d-   Z5 e6 d.  Z7 e7 Z8 d/   Z9 d0   Z: d1   Z; d2   Z< d3   Z= d4   Z> d5   Z? d6   Z@ d7   ZA d8   ZB d9   ZC d:   ZD d;   ZE d d<  ZF eG d=    ZH eH jI d>    ZH eG d?    ZJ eJ jI d@    ZJ RS(C   u   Base class for command-line applications.

    :keyword app: The current app.
    :keyword get_app: Callable returning the current app if no app provided.

    u    u   -Au   --appt   defaultu   -bu   --brokeru   --loaderu   --configu	   --workdirt   destu   working_directoryu
   --no-coloru   -Ct   actionu
   store_trueu   --quietu   -qu   celeryc	   	      C@ s   | |  _  | p |  j |  _ | p' t j |  _ | p9 t j |  _ d  |  _ | |  _ | |  _	 |  j
 sr |  j |  _
 n  | r | |  _ n  | r | |  _ n  d  S(   N(   t   appt   _get_default_appt   get_appt   syst   stdoutt   stderrR   t   _coloredt	   _no_colort   quietRD   t   __doc__t   on_errort   on_usage_error(	   R"   RJ   RL   t   no_colorRN   RO   RR   RT   RU   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR!      s    					c         O@ s   t  d   d S(   u>   This is the body of the command called by :meth:`handle_argv`.u   subclass responsibilityN(   t   NotImplementedError(   R"   t   argst   options(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   run  s    c         C@ s&   |  j  |  j j d j |    d  S(   Nu
   Error: {0}(   t   errort   coloredt   redR8   (   R"   R;   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRT     s    c         C@ s   |  j  |  d  S(   N(   t   handle_error(   R"   R;   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRU     s    c         C@ s   d  S(   N(    (   R"   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   on_concurrency_setup  s    c         O@ s   t  j   |  j |  y* |  j | |   } | d  k	 r< | St SWnM |  j k
 rj } |  j |  | j S|  j	 k
 r } |  j
 |  | j SXd  S(   N(   t   randomt   seedt   verify_argsRZ   R   R   R'   RU   R   R   RT   (   R"   RX   t   kwargst   retR;   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   __call__  s    
i    c         C@ s   t  |  j  } | j r1 | j d d k r1 d n | } | j | | j rY t | j  n d  !} | t |  } | r |  j d j t j	 t |  d  d j
 |     n  d  S(   Ni    u   selfi   u   Missing required {0}: {1}u   argumentu   , (   R   RZ   RX   t   defaultst   lenR   R'   R8   R   t	   pluralizeR2   (   R"   t   givent   _indext   St   requiredt   missing(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRb     s    ()c         C@ s   | d k r t t j  } n  |  j |  |  j   |  j |  |  j |  } t j	 j
 | d  |  _ |  j |  j | d  S(   u   Execute application from command-line.

        :keyword argv: The list of command-line arguments.
                       Defaults to ``sys.argv``.

        i    i   N(   R   t   listRM   t   argvR   R_   t   early_versiont   setup_app_from_commandlinet   ost   patht   basenamet	   prog_namet   handle_argv(   R"   Ro   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   execute_from_commandline&  s    
c         C@ s(   |  j  | | d  k r t j n | |  S(   N(   Rv   R   RM   Ro   (   R"   Ru   Ro   t   command(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   run_from_argv9  s    	c         C@ sD   | p t  j } |  j |  } | r@ t | |  | \ } } n  d  S(   N(   RM   Ro   t   with_pool_optionR   (   R"   Ro   t   pool_optiont
   short_optst	   long_opts(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   =  s
    c         C@ s   d j  | d |  S(   Nu   %prog {0} [options] {self.args}R"   (   R8   (   R"   Rx   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   usageD  s    c         C@ s   |  j  S(   u#   Get supported command-line options.(   t   option_list(   R"   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   get_optionsG  s    c         C@ s#   t  | t  r t j j |  S| S(   N(   t
   isinstanceR   Rr   Rs   t
   expanduser(   R"   t   value(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   K  s    c         C@ s   | } | d k	 rL g  | D]* } | | k r7 | j   n	 | j   ^ q } n  d j |  } d j | j   |  } x6 t |  j   } | | k r | S| d k	 rv Pqv qv W| S(   u  Prompt user to choose from a tuple of string values.

        :param q: the question to ask (do not include questionark)
        :param choice: tuple of possible choices, must be lowercase.
        :param default: Default value if any.

        If a default is not specified the question will be repeated
        until the user gives a valid choice.

        Matching is done case insensitively.

        u   /u   {0} ({1})? N(   R   t   uppert   lowerR2   R8   t
   capitalizet   input(   R"   t   qt   choicesRG   t   schoicest   ct   pt   val(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   askP  s    7c         C@ s1   |  j  |  j | | |    \ } } |  | |   S(   u:  Parse command-line arguments from ``argv`` and dispatch
        to :meth:`run`.

        :param prog_name: The program name (``argv[0]``).
        :param argv: Command arguments.

        Exits with an error message if :attr:`supports_args` is disabled
        and ``argv`` contains positional arguments.

        (   t   prepare_argst   parse_options(   R"   Ru   Ro   Rx   RY   RX   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRv   l  s    c         @ sj   | r1 t    f d   t t |   D  } n  g  | D] }   j |  ^ q8 }   j |  | | f S(   Nc         3@ s9   |  ]/ \ } } | j  d   s |   j |  f Vq d S(   u   _N(   t
   startswithR   (   t   .0t   kt   v(   R"   (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pys	   <genexpr>}  s   	(   t   dictR   t   varsR   t
   check_args(   R"   RY   RX   t   arg(    (   R"   s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   {  s    "c         C@ s9   |  j  r5 | r5 |  j t j d j |   t  n  d  S(   Nu   , (   t   supports_argst   diet   ARGV_DISABLEDR8   R2   R   (   R"   RX   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ s   |  j  | d |  j d  S(   Nt   fh(   t   outRO   (   R"   t   s(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR[     s    c         C@ s   t  | d | p |  j d  S(   Nt   file(   t   printRN   (   R"   R   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ s   |  j  |  t j |  d  S(   N(   R[   RM   t   exit(   R"   t   msgR   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ s6   d | k r2 t  |  j d |  j t j d  n  d  S(   Nu	   --versionR   i    (   R   t   versionRN   RM   R   (   R"   Ro   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRp     s    c         C@ s%   |  j  | |  |  _ |  j j |  S(   u   Parse the available options.(   t   create_parsert   parsert
   parse_args(   R"   Ru   t	   argumentsRx   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ sy   |  j  |  j   t |  j j d  } |  j |  j d | d |  j |  d |  j d |  j	 d t
   d |  j d |   S(	   Nu   preloadt   progR~   R   R>   t	   formatterRD   R   (   t   preload_optionsR   t   tupleRJ   t   user_optionst   prepare_parsert   ParserR~   R   R>   R=   RD   (   R"   Ru   Rx   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    				c         C@ s   g  |  j  t f D] } | r |  j |  ^ q } xj | D]b } xY t |  D]K \ } } | j |  } | d  k	 rK d j |  j d | j  | _	 qK qK Wq8 W| S(   Nu    RG   (
   t   docRS   t	   parse_docR   t
   get_optionR   R2   R8   RG   t   help(   R"   R   R   t   docst   long_optR   t   option(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    1,c         C@ s9  |  j  |  } | j d  } | d  k	 r6 | |  _ n  y | d |  _ Wn t k
 rZ n X| j d  } | r t j |  n  | j d  p t j j d  p |  j	 } | j d  } | r | t j d <n  | t j j d  p d f } | j d	 d   } | r| t j d
 <n  | j d  }	 |	 r:|	 t j d <n  |  j
 r| r^|  j |  |  _	 n' |  j	 d  k r|  j d |  |  _	 n  |  j r|  j |  } qn t d g   |  _	 t |  j	 j d pd  }
 |
 r5|  j | |
  } x$ |
 D] } | j | j | j  qWt j j d |  d |  j	 d |  n  | S(   Nu   quietu   no_coloru   working_directoryu   appu
   CELERY_APPu   loaderu   CELERY_LOADERu   defaultu   brokeru   CELERY_BROKER_URLu   configu   CELERY_CONFIG_MODULEt   loadert   fixupsu   preloadt   senderRJ   RY   (    (   t   parse_preload_optionst   getR   RR   RV   t   KeyErrorRr   t   chdirt   environRJ   t   respects_app_optiont   find_appRL   t   enable_config_from_cmdlinet   process_cmdline_configR   R   R   t   preparse_optionst
   setdefaultRH   RG   R   t   user_preload_optionst   send(   R"   Ro   R   RR   t   workdirRJ   t   preload_loaderR   t   brokert   configt   user_preloadR   t   user_option(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRq     sT    				c         C@ s#   d d l  m } | | d |  j S(   Ni    (   R   R   (   t   celery.app.utilsR   R   (   R"   RJ   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ s   t  | d | S(   Nt   imp(   R   (   R"   R,   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ s^   y | j  d  } Wn t k
 r' | SX| |  | | d } } |  j j | d |  j | S(   Nu   --i   R*   (   t   indext
   ValueErrorRJ   t   config_from_cmdlineR*   (   R"   Ro   t   cargs_startt   cargs(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ s   |  j  | |  j  S(   N(   R   R   (   R"   RX   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     s    c         C@ s4   | j  | j | j p g   | | j j |  d  S(   N(   R   RH   RG   t   append(   R"   t   acct   optR   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   add_append_opt  s    c      	   C@ s\  i  } i  } xT | D]L } xC | j  | j f D]/ } | j t t | | g t |     q, Wq Wd } t |  } x| | k  rW| | }	 |	 j d  rd |	 k r|	 j d d  \ }
 } | j |
  } | r| j	 d k r |  j
 | | |  q| | | j <qqJ| j |	  } | r~| j   r~| j	 d k r\|  j
 | | | | d  n | | d | | j <| d 7} qJ| rJ| j	 d k rJt | | j <qJn |	 j d  rJ| j |	  } | rJ| j   r%y | | d | | j <Wn& t k
 rt d j |	    n X| d 7} qG| j	 d k rGt | | j <qGqJn  | d 7} qx W| S(	   Ni    u   --u   =i   u   appendu
   store_trueu   -u!   Missing required argument for {0}(   t
   _long_optst   _short_optst   updateR   t   zipRg   R   t   splitR   RI   R   RH   t   takes_valuet   Truet
   IndexErrorR   R8   (   R"   RX   RY   R   t   optsR   t   tR   t   lengthR   t   keyR   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR     sP    1
c         C@ s   t  t  d  } } x | j   D] } | j d  rx t j |  } | rc | j   d j   } n  | s t	 d   q  | r  | j d	  r  | | j
 t j d | j    j d d   q  q  W| S(
   Nu   .. cmdoption::i    u   missing long optu    i   u   \1u   `u    u       (   R   Rn   R   t
   splitlinesR   t   find_long_optt   matcht   groupst   stript   AssertionErrorR   t   find_rst_reft   subt   replace(   R"   R   RY   t	   in_optiont   linet   m(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   .  s    
,c         C@ s   d S(   u   Return tuple of ``(short_opts, long_opts)`` if the command
        supports a pool argument, and used to monkey patch eventlet/gevent
        environments as early as possible.

        E.g::
              has_pool_option = (['-P'], ['--pool'])
        N(    (   R"   Ro   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRz   ;  s    c         K@ s   t  | | |  S(   N(   R   (   R"   R   t   nodenamet   extra(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   E  s    c         K@ s   t  | |  S(   N(   R   (   R"   R   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   H  s    c         O@ s   d d l  m } |   S(   Ni    (   t   get_current_app(   t   celery._stateR   (   R"   RX   Rc   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRK   K  s    c         @ s0   |  j    | s d Sd j   f d   | D  S(   Nu	   - empty -u   
c         3@ s9   |  ]/ } t    j   j d   d j |    Vq d S(   u   *u    {0}N(   t   strt   resett   whiteR8   (   R   t   item(   R   (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pys	   <genexpr>T  s    (   R\   R2   (   R"   t   n(    (   R   s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   pretty_listO  s
    	c         C@ s   |  j  } y4 | j d  t j |  j | d  d d  f SWn t k
 rP n X| j d  t j |  j | d  d d  f S(   Nu   OKu   oki   i   u   ERRORu   error(   R\   t   greenR   t   indentt   prettyR   R]   (   R"   R   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   pretty_dict_ok_errorW  s    	(c         C@ s|   |  j  } t t |   } | | } |  j |  \ } } |  j d | j | d  | |  j rq t j | d  n d  d  S(   Nu   ->u   : i   u    (	   R\   t   nextt   iterR   t   say_chatt   cyant
   show_replyR   R   (   R"   t   repliesR   t   nodet   replyR   t   preply(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   say_remote_command_replya  s    	
c         C@ s   t  |  j j d   } t | t  r: | |  j |  f St | t  r d | k sa d | k rn |  j |  S| t j	 | d t
 d d f Sn  t | t  r | t |  f S| t |  f S(   Nu   OKu   oku   errort	   sort_keysR   i   (   R   R\   R   R   Rn   R   R   R   t   jsont   dumpsR   R   R   R	   (   R"   R   t   OK(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   i  s    "c         C@ s   |  j  } | d k r" |  j r" d  S|  j rG | j | j |  d  pJ d } |  j | j | |   | r |  j r |  j |  n  d  S(   Nu   <-u    u    (   R\   RR   t   boldR   R   R   t	   show_body(   R"   t	   directiont   titlet   bodyR   t   dirstr(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR   v  s    	+c         C@ s2   |  j  d  k r+ t j d |  j  |  _  n  |  j  S(   Nt   enabled(   RP   R   R   R\   RV   (   R"   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR\     s    c         C@ s   | |  _  d  S(   N(   RP   (   R"   t   obj(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyR\     s    c         C@ s   |  j  S(   N(   RQ   (   R"   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRV     s    c         C@ s/   | |  _  |  j d  k	 r+ |  j  |  j _ n  d  S(   N(   RQ   RP   R   R  (   R"   R   (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRV     s    	(    N(K   R$   R%   RS   R   R'   R   R   RX   R
   R   R   R   R   R   R   R   t   OptionR   t   FalseR   R*   R>   RD   t   leafR  R  Ru   R!   RZ   RT   RU   R_   Re   Rb   Rw   Ry   R   R~   R   R   R   Rv   R   R   R[   R   R   R   Rp   R   R   R   Rq   R   R   R   t   get_cls_by_nameR   R   R   R   R   Rz   R   R   RK   R   R   R  R   R   t   propertyR\   t   setterRV   (    (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyRF      s   																	0						/		
					
			c      	   C@ sa   t  d d d | t  d d |  t  d d d  t  d d d  t  d d d  t  d d d  f S(	   Nu   -fu	   --logfileRG   u	   --pidfileu   --uidu   --gidu   --umasku   --executable(   R  R   (   t   default_pidfilet   default_logfile(    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   daemon_options  s    (C   RS   t
   __future__R    R   R   Rr   R`   t   reRM   R6   R  t   collectionsR   t   heapqR   t   inspectR   t   optparseR   R   R   R  t   pprintR	   t   celeryR
   R   R   R   t   celery.exceptionsR   R   t   celery.fiveR   R   R   t   celery.platformsR   R   R   t   celery.utilsR   R   R   R   t   celery.utils.importsR   R   t	   raw_inputR   t	   NameErrort   warningt   simplefilterR   t   compileR   R   t   __all__t	   ExceptionR   R'   t   objectR(   R=   RF   R   R  (    (    (    s1   /tmp/pip-unpacked-wheel-gV1wwp/celery/bin/base.pyt   <module>F   sN   
 