
    hg                        S r SSKrSSKrSSKrSSKrSSKrSSKrSSKJrJ	r	  SSK
Jr  SSKJrJr  SSKJrJrJrJrJrJrJrJrJrJr   " S S\5      r " S	 S
5      r " S S5      r " S S5      r\" 5       r        S!S\ S\S\\!   S\\    S\\    S\"S\\    S\\\/S4      SS4S jjr# S"S\\\       S\"S\\    4S jjr$S#S\ S\"SS4S jjr%S$S\\   SS4S jjr&S\/ S4   SS4S  jr'\" \5        g)%a  A command line parsing module that lets modules define their own options.

This module is inspired by Google's `gflags
<https://github.com/google/python-gflags>`_. The primary difference
with libraries such as `argparse` is that a global registry is used so
that options may be defined in any module (it also enables
`tornado.log` by default). The rest of Tornado does not depend on this
module, so feel free to use `argparse` or other configuration
libraries if you prefer them.

Options must be defined with `tornado.options.define` before use,
generally at the top level of a module. The options are then
accessible as attributes of `tornado.options.options`::

    # myapp/db.py
    from tornado.options import define, options

    define("mysql_host", default="127.0.0.1:3306", help="Main user DB")
    define("memcache_hosts", default="127.0.0.1:11011", multiple=True,
           help="Main user memcache servers")

    def connect():
        db = database.Connection(options.mysql_host)
        ...

    # myapp/server.py
    from tornado.options import define, options

    define("port", default=8080, help="port to listen on")

    def start_server():
        app = make_app()
        app.listen(options.port)

The ``main()`` method of your application does not need to be aware of all of
the options used throughout your program; they are all automatically loaded
when the modules are loaded.  However, all modules that define options
must have been imported before the command line is parsed.

Your ``main()`` method can parse the command line or parse a config file with
either `parse_command_line` or `parse_config_file`::

    import myapp.db, myapp.server
    import tornado

    if __name__ == '__main__':
        tornado.options.parse_command_line()
        # or
        tornado.options.parse_config_file("/etc/server.conf")

.. note::

   When using multiple ``parse_*`` functions, pass ``final=False`` to all
   but the last one, or side effects may occur twice (in particular,
   this can result in log messages being doubled).

`tornado.options.options` is a singleton instance of `OptionParser`, and
the top-level functions in this module (`define`, `parse_command_line`, etc)
simply call methods on it.  You may create additional `OptionParser`
instances to define isolated sets of options, such as for subcommands.

.. note::

   By default, several options are defined that will configure the
   standard `logging` module when `parse_command_line` or `parse_config_file`
   are called.  If you want Tornado to leave the logging configuration
   alone so you can manage it yourself, either pass ``--logging=none``
   on the command line or do the following to disable it in code::

       from tornado.options import options, parse_command_line
       options.logging = None
       parse_command_line()

.. note::

   `parse_command_line` or `parse_config_file` function should called after
   logging configuration and user-defined command line flags using the
   ``callback`` option definition, or these configurations will not take effect.

.. versionchanged:: 4.3
   Dashes and underscores are fully interchangeable in option names;
   options can be defined, set, and read with any mix of the two.
   Dashes are typical for command-line usage while config files require
   underscores.
    N)_unicode
native_str)define_logging_options)basestring_typeexec_in)
AnyIteratorIterableTupleSetDictCallableListTextIOOptionalc                       \ rS rSrSrSrg)Error   z1Exception raised by errors in the options module. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       bC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\tornado/options.pyr   r      s    ;r   r   c                      \ rS rSrSrS'S jrS\S\4S jrS\S\4S jr	S\S	\SS4S
 jr
S\4S jrS\S\4S jrS\S\4S jrS\S	\SS4S jrS\\\\4      4S jrS\\   4S jrS\S\\\4   4S jrS\\\4   4S jr       S(S\S\S\\   S\\   S\\   S\S\\   S\\\/S4      SS4S jjr S)S\\\      S\S\\   4S jjrS*S\S\SS4S jjrS+S \\    SS4S! jjr!S	\SS4S" jr"S\/ S4   SS4S# jr#S'S$ jr$S,S% jr%S&r&g)-OptionParser   zA collection of options, a dictionary with object-like access.

Normally accessed via static functions in the `tornado.options` module,
which reference a global instance.
returnNc                     0 U R                   S'   / U R                   S'   U R                  S[        SU R                  S9  g )N_options_parse_callbackshelpzshow this help information)typer%   callback)__dict__definebool_help_callbackselfs    r   __init__OptionParser.__init__   sB    $&j!,.()-((	 	 	
r   namec                 &    UR                  SS5      $ )N_-)replacer-   r0   s     r   _normalize_nameOptionParser._normalize_name   s    ||C%%r   c                     U R                  U5      n[        U R                  R                  U5      [        5      (       a  U R                  U   R                  5       $ [        SU-  5      eNzUnrecognized option %r)r6   
isinstancer#   get_OptionvalueAttributeErrorr5   s     r   __getattr__OptionParser.__getattr__   sW    ##D)dmm''-w77==&,,..5<==r   r=   c                     U R                  U5      n[        U R                  R                  U5      [        5      (       a  U R                  U   R                  U5      $ [        SU-  5      er9   )r6   r:   r#   r;   r<   setr>   r-   r0   r=   s      r   __setattr__OptionParser.__setattr__   sY    ##D)dmm''-w77==&**5115<==r   c                 D    S U R                   R                  5        5       $ )Nc              3   8   #    U  H  oR                   v   M     g 7fNr0   ).0opts     r   	<genexpr>(OptionParser.__iter__.<locals>.<genexpr>   s     ;$:S$:s   )r#   valuesr,   s    r   __iter__OptionParser.__iter__   s    ;DMM$8$8$:;;r   c                 @    U R                  U5      nXR                  ;   $ rH   )r6   r#   r5   s     r   __contains__OptionParser.__contains__   s    ##D)}}$$r   c                 $    U R                  U5      $ rH   )r?   r5   s     r   __getitem__OptionParser.__getitem__   s    %%r   c                 $    U R                  X5      $ rH   )rD   rC   s      r   __setitem__OptionParser.__setitem__   s    ,,r   c                     U R                   R                  5        VVs/ s H!  u  pUR                  UR                  5       4PM#     snn$ s  snnf )z;An iterable of (name, value) pairs.

.. versionadded:: 3.1
r#   itemsr0   r=   r-   r0   rK   s      r   r\   OptionParser.items   s<    
 :>9L9L9NO9NID399;'9NOOOs   (A
c                 t    U R                   R                  5        Vs1 s H  oR                  iM     sn$ s  snf )zGThe set of option-groups created by ``define``.

.. versionadded:: 3.1
)r#   rN   
group_name)r-   rK   s     r   groupsOptionParser.groups   s-    
 +/--*>*>*@A*@3*@AAAs   5groupc                     U R                   R                  5        VVs0 s H8  u  p#U(       a  XR                  :X  d  M  UR                  UR	                  5       _M:     snn$ s  snnf )a  The names and values of options in a group.

Useful for copying options into Application settings::

    from tornado.options import define, parse_command_line, options

    define('template_path', group='application')
    define('static_path', group='application')

    parse_command_line()

    application = Application(
        handlers, **options.group_dict('application'))

.. versionadded:: 3.1
)r#   r\   r`   r0   r=   )r-   rc   r0   rK   s       r   
group_dictOptionParser.group_dict   sU    & "]]002
2	E^^3 "CHHciik!2
 	
 
s
   A!A!c                     U R                   R                  5        VVs0 s H   u  pUR                  UR                  5       _M"     snn$ s  snnf )z<The names and values of all options.

.. versionadded:: 3.1
r[   r]   s      r   as_dictOptionParser.as_dict   s<    
 8<}}7J7J7LM7L)$#))+%7LMMMs   'A	defaultr&   r%   metavarmultipler'   c	                    U R                  U5      n	XR                  ;   a*  [        SU	< SU R                  U	   R                  < 35      e[        R
                  " S5      n
U
b  U
R                  R                  nU
R                  bT  U
R                  R                  R                  U:X  a0  U
R                  R                  R                  S:X  a  U
R                  n
U
R                  c   eU
R                  R                  R                  nOSnUW:X  a  SnUc  U(       d  Ub  UR                  nO[        nU(       a  UnOUn[        UUUUUUUUUS9	nXR                  U	'   g)	a  Defines a new command line option.

``type`` can be any of `str`, `int`, `float`, `bool`,
`~datetime.datetime`, or `~datetime.timedelta`. If no ``type``
is given but a ``default`` is, ``type`` is the type of
``default``. Otherwise, ``type`` defaults to `str`.

If ``multiple`` is True, the option value is a list of ``type``
instead of an instance of ``type``.

``help`` and ``metavar`` are used to construct the
automatically generated command line help string. The help
message is formatted like::

   --name=METAVAR      help string

``group`` is used to group the defined options in logical
groups. By default, command line options are grouped by the
file in which they are defined.

Command line option names must be unique globally.

If a ``callback`` is given, it will be run with the new value whenever
the option is changed.  This can be used to combine command-line
and file-based options::

    define("config", type=str, help="path to config file",
           callback=lambda path: parse_config_file(path, final=False))

With this definition, options in the file specified by ``--config`` will
override options set earlier on the command line, but can be overridden
by later flags.

Option z already defined in r   Nr)   z	<unknown> )	file_namerj   r&   r%   rk   rl   r`   r'   )r6   r#   r   rp   sys	_getframef_codeco_filenamef_backco_name	__class__strr<   )r-   r0   rj   r&   r%   rk   rl   rc   r'   
normalizedframeoptions_filerp   r`   options                  r   r)   OptionParser.define   sD   Z ))$/
&t}}Z8BBD  a  <<33L
 (LL''33|CLL''//8;<<+++++77I#I$I< 3((J"J!

 %+j!r   argsfinalc                 V   Uc  [         R                  n/ n[        S[        U5      5       H  nX   R	                  S5      (       d  XS n  OX   S:X  a	  XS-   S n  OX   R                  S5      nUR                  S5      u  pgnU R                  U5      nX`R                  ;  a  U R                  5         [        SU-  5      eU R                  U   n	U(       d%  U	R                  [        :X  a  SnO[        SU-  5      eU	R                  U5        M     U(       a  U R                  5         U$ )	a  Parses all options given on the command line (defaults to
`sys.argv`).

Options look like ``--option=value`` and are parsed according
to their ``type``. For boolean options, ``--option`` is
equivalent to ``--option=true``

If the option has ``multiple=True``, comma-separated values
are accepted. For multi-value integer options, the syntax
``x:y`` is also accepted and equivalent to ``range(x, y)``.

Note that ``args[0]`` is ignored since it is the program name
in `sys.argv`.

We return a list of all arguments that are not parsed as options.

If ``final`` is ``False``, parse callbacks will not be run.
This is useful for applications that wish to combine configurations
from multiple sources.

N   r3   z--=z$Unrecognized command line option: %rtruezOption %r requires a value)rq   argvrangelen
startswithlstrip	partitionr6   r#   
print_helpr   r&   r*   parserun_parse_callbacks)
r-   r~   r   	remainingiargr0   equalsr=   r|   s
             r   parse_command_lineOptionParser.parse_command_line;  s   0 <88D	q#d)$A7%%c** H	w$ QM	'..%C"%--"4D%''-D==(!BTIJJ]]4(F;;$&"E <t CDDLL) %, $$&r   pathc                    S[         R                  R                  U5      0n[        US5       n[	        [        UR                  5       5      X35        SSS5        U H  nU R                  U5      nX`R                  ;   d  M%  U R                  U   nUR                  (       aO  [        X5   [        [        45      (       d2  [        SUR                  < SUR                  R                   < S35      e[        X5   5      [        L a9  UR                  [        Ld  UR                  (       a  UR#                  X5   5        M  UR%                  X5   5        M     U(       a  U R'                  5         gg! , (       d  f       GN"= f)a  Parses and loads the config file at the given path.

The config file contains Python code that will be executed (so
it is **not safe** to use untrusted config files). Anything in
the global namespace that matches a defined option will be
used to set that option's value.

Options may either be the specified type for the option or
strings (in which case they will be parsed the same way as in
`.parse_command_line`)

Example (using the options defined in the top-level docs of
this module)::

    port = 80
    mysql_host = 'mydb.example.com:3306'
    # Both lists and comma-separated strings are allowed for
    # multiple=True.
    memcache_hosts = ['cache1.example.com:11011',
                      'cache2.example.com:11011']
    memcache_hosts = 'cache1.example.com:11011,cache2.example.com:11011'

If ``final`` is ``False``, parse callbacks will not be run.
This is useful for applications that wish to combine configurations
from multiple sources.

.. note::

    `tornado.options` is primarily a command-line library.
    Config file support is provided for applications that wish
    to use it, but applications that prefer config files may
    wish to look at other libraries instead.

.. versionchanged:: 4.1
   Config files are now always interpreted as utf-8 instead of
   the system default encoding.

.. versionchanged:: 4.4
   The special variable ``__file__`` is available inside config
   files, specifying the absolute path to the config file itself.

.. versionchanged:: 5.1
   Added the ability to set options via strings in config files.

__file__rbNrn    is required to be a list of z or a comma-separated string)osr   abspathopenr   r   readr6   r#   rl   r:   listrx   r   r0   r&   r   r   rB   r   )r-   r   r   configfr0   ry   r|   s           r   parse_config_fileOptionParser.parse_config_fileq  s   \ bggood34$Jqvvx(&9 D--d3J]]*z2??%flT3K@@#  &{{FKK,@,@B  %,KKs*fooLL.JJv|,# & $$& + s   $E--
E<filec           	         Uc  [         R                  n[        S[         R                  S   -  US9  [        SUS9  0 nU R                  R                  5        H.  nUR                  UR                  / 5      R                  U5        M0     [        UR                  5       5       GHO  u  pEU(       a*  [        S[        R                  R                  U5      -  US9  UR                  S S9  U GH  nU R                  UR                   5      nUR"                  (       a  US	UR"                  -   -  nUR$                  =(       d    S
nUR&                  b"  UR&                  S
:w  a  USUR&                  -  -  n[(        R*                  " US5      n[-        U5      S:  d  [-        U5      S:X  a  UR/                  SS
5        [        SU<S SUS   < 3US9  USS  H  n	[        S<S SU	< 3US9  M     GM     GMR     [        US9  g)z@Prints all the command line options to stderr (or another file).NzUsage: %s [OPTIONS]r   r   z

Options:
z
%s options:
c                     U R                   $ rH   rI   )r|   s    r   <lambda>)OptionParser.print_help.<locals>.<lambda>  s    fkkr   )keyr   ro   z (default %s),      z  --30 r   34)rq   stderrprintr   r#   rN   
setdefaultr`   appendsortedr\   r   r   normpathsortr6   r0   rk   r%   rj   textwrapwrapr   insert)
r-   r   by_groupr|   filenameoprefixdescriptionlineslines
             r   r   OptionParser.print_help  s   <::D#chhqk1=n4(mm**,F 1 126==fE - "(.."23KH'"''*:*:8*DD4PFF1F2--fkk:>>cFNN22F$kk/R>>-&..B2F?V^^#CCK k7;v;#s5zQLLB'a9E!!"IDT2> & 	 4$ 	4r   c                 `    U(       a'  U R                  5         [        R                  " S5        g g )Nr   )r   rq   exitr-   r=   s     r   r+   OptionParser._help_callback  s    OOHHQK r   c                 :    U R                   R                  U5        g)zAAdds a parse callback, to be invoked when option parsing is done.N)r$   r   r-   r'   s     r   add_parse_callbackOptionParser.add_parse_callback  s    $$X.r   c                 8    U R                    H
  nU" 5         M     g rH   )r$   r   s     r   r    OptionParser.run_parse_callbacks  s    --HJ .r   c                     [        U 5      $ )a  Returns a wrapper around self that is compatible with
`unittest.mock.patch`.

The `unittest.mock.patch` function is incompatible with objects like ``options`` that
override ``__getattr__`` and ``__setattr__``.  This function returns an object that can be
used with `mock.patch.object <unittest.mock.patch.object>` to modify option values::

    with mock.patch.object(options.mockable(), 'name', value):
        assert options.name == value
)	_Mockabler,   s    r   mockableOptionParser.mockable  s     r   r   )r!   NNNNNFNNNTTrH   )r!   r   )'r   r   r   r   r   r.   rx   r6   r   r?   rD   r	   rO   r*   rR   rU   rX   r
   r   r\   r   ra   r   re   rh   r   r&   r   r)   r   r   r   r   r   r+   r   r   r   r   r   r   r   r   r      s6   	
&C &C &> > >> >C >D ><( <% % %& & &- -C -D -Pxc3h0 PBC B
 
S#X 
.Nc3h N #"!%#48Z+Z+ Z+ tn	Z+
 smZ+ #Z+ Z+ }Z+ 8SE4K01Z+ 
Z+z ?C4T#Y'47;4	c4lE'c E'$ E'$ E'Nx/ 4 <D T 
/8BH+= /$ /r   r   c                   d    \ rS rSrSrS\SS4S jrS\S\4S jr	S\S	\SS4S
 jr
S\SS4S jrSrg)r   i  a  `mock.patch` compatible wrapper for `OptionParser`.

As of ``mock`` version 1.0.1, when an object uses ``__getattr__``
hooks instead of ``__dict__``, ``patch.__exit__`` tries to delete
the attribute it set instead of setting a new one (assuming that
the object does not capture ``__setattr__``, so the patch
created a new attribute in ``__dict__``).

_Mockable's getattr and setattr pass through to the underlying
OptionParser, and delattr undoes the effect of a previous setattr.
optionsr!   Nc                 >    XR                   S'   0 U R                   S'   g )Nr#   
_originals)r(   )r-   r   s     r   r.   _Mockable.__init__  s    $+j!&(l#r   r0   c                 .    [        U R                  U5      $ rH   )getattrr#   r5   s     r   r?   _Mockable.__getattr__  s    t}}d++r   r=   c                     XR                   ;  d   S5       e[        U R                  U5      U R                   U'   [        U R                  X5        g )Nzdon't reuse mockable objects)r   r   r#   setattrrC   s      r   rD   _Mockable.__setattr__  s?    ??*J,JJ* 't <t+r   c                 b    [        U R                  XR                  R                  U5      5        g rH   )r   r#   r   popr5   s     r   __delattr___Mockable.__delattr__  s    t__%8%8%>?r   r   )r   r   r   r   r   r   r.   rx   r   r?   rD   r   r   r   r   r   r   r     s]    
) ) )
, , ,, ,C ,D ,
@ @ @r   r   c                      \ rS rSr\" 5       r        S"S\S\S\\	   S\\   S\\   S\
S	\\   S
\\   S\\\/S4      SS4S jjrS\4S jrS\S\4S jrS\SS4S jr/ SQrS\S\R"                  4S jrSSSSSSSSSS.	rSr\R,                  " S\-  \R.                  5      rS\S\R2                  4S jrS\S\
4S jrS\S\4S  jrS!rg)#r<   i  Nr0   rj   r&   r%   rk   rl   rp   r`   r'   r!   c
                     Uc	  U(       a  / nXl         Uc  [        S5      eX0l        X@l        XPl        X`l        Xpl        Xl        Xl        X l	        [        R                  U l        g )Nztype must not be None)r0   
ValueErrorr&   r%   rk   rl   rp   r`   r'   rj   r<   UNSET_value)
r-   r0   rj   r&   r%   rk   rl   rp   r`   r'   s
             r   r.   _Option.__init__  sY     ?xG	<455		 "$ mmr   c                 l    U R                   [        R                  L a  U R                  $ U R                   $ rH   )r   r<   r   rj   r,   s    r   r=   _Option.value0  s$    #{{gmm;t||LLr   r=   c                 "   [         R                   U R                  [         R                  U R                  [        U R
                  [        U R                  0R                  U R                  U R                  5      nU R                  (       a  / U l        UR                  S5       H  n[        U R                  [        R                  5      (       aV  UR!                  S5      u  pEnU" U5      nU(       a  U" U5      OUnU R                  R#                  [%        XxS-   5      5        M  U R                  R'                  U" U5      5        M     OU" U5      U l        U R(                  b  U R)                  U R                  5        U R+                  5       $ )N,:r   )datetime_parse_datetime	timedelta_parse_timedeltar*   _parse_boolr   _parse_stringr;   r&   rl   r   split
issubclassnumbersIntegralr   extendr   r   r'   r=   )	r-   r=   _parsepartlo_strr2   hi_strlohis	            r   r   _Option.parse3  s$   t33 5 5$""T//	

 #IItyy
 	 ==DKC(dii)9)9::(,s(;%FvB+1rBKK&&uRa'89KK&&vd|4 ) !-DK==$MM$++&zz|r   c           
      |   U R                   (       a  [        U[        5      (       d1  [        SU R                  < SU R
                  R                  < 35      eU HS  nUc  M  [        X R
                  5      (       a  M$  [        SU R                  < SU R
                  R                  < 35      e   O\UbY  [        XR
                  5      (       d?  [        SU R                  < SU R
                  R                  < S[        U5      < S35      eXl        U R                  b  U R                  U R                  5        g g )Nrn   r   z is required to be a z (z given))	rl   r:   r   r   r0   r&   r   r   r'   )r-   r=   items      r   rB   _Option.setM  s    ==eT**yy$))"4"46  #JtYY,G,G99dii&8&8:    E99)E)Eyy$))"4"4d5kC  ==$MM$++& %r   )
z%a %b %d %H:%M:%S %Yz%Y-%m-%d %H:%M:%Sz%Y-%m-%d %H:%Mz%Y-%m-%dT%H:%Mz%Y%m%d %H:%M:%Sz%Y%m%d %H:%Mz%Y-%m-%dz%Y%m%dz%H:%M:%Sz%H:%Mc                     U R                    H#  n [        R                  R                  X5      s  $    [	        SU-  5      e! [         a     MB  f = f)Nz!Unrecognized date/time format: %r)_DATETIME_FORMATSr   strptimer   r   )r-   r=   formats      r   r   _Option._parse_datetimer  sU    ,,F((11%@@ -
 7%?@@  s   A
AAhoursminutessecondsmillisecondsmicrosecondsdaysweeks)	hmminssecmsusdwz-[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?z\s*(%s)\s*(\w*)\s*c                     [         R                  " 5       nSnU[        U5      :  a  U R                  R	                  X5      nU(       d
  [        5       e[        UR                  S5      5      nUR                  S5      =(       d    SnU R                  R                  Xf5      nU[         R                  " S0 Xe0D6-  nUR                  5       nU[        U5      :  a  M  U$ ! [
         a    e f = f)Nr   r      r  r   )r   r   r   _TIMEDELTA_PATTERNmatch	Exceptionfloatrc   _TIMEDELTA_ABBREV_DICTr;   end)r-   r=   sumstartr  numunitss          r   r   _Option._parse_timedelta  s    	$$&CE#e*$++11%?#+%AGGAJ'
/i3377Ex))9UL99 #e*$ J 		s   CC  C   C,c                 (    UR                  5       S;  $ )N)false0r   )lowerr   s     r   r   _Option._parse_bool  s    {{}$777r   c                     [        U5      $ rH   )r   r   s     r   r   _Option._parse_string  s    r   )
r   r'   rj   rp   r`   r%   rk   rl   r0   r&   )NNNNFNNN)r   r   r   r   objectr   rx   r   r   r&   r*   r   r.   r=   r   rB   r   r   r   r  _FLOAT_PATTERNrecompile
IGNORECASEr  r   r   r   r   r   r   r   r   r<   r<     s    HE
 #"!%#'$(48$$ $ tn	$
 sm$ #$ $ C=$ SM$ 8SE4K01$ 
$6Ms M3 3 4' ' '0AS AX->-> A 
 FN.c h.@.@ $8 8 83 3 r   r<   r0   rj   r&   r%   rk   rl   rc   r'   r!   c                 6    [         R                  U UUUUUUUS9$ )zGDefines an option in the global namespace.

See `OptionParser.define`.
)rj   r&   r%   rk   rl   rc   r'   )r   r)   )r0   rj   r&   r%   rk   rl   rc   r'   s           r   r)   r)     s2     >>  	 	r   r~   r   c                 (    [         R                  XS9$ )zUParses global options from the command line.

See `OptionParser.parse_command_line`.
r   )r   r   )r~   r   s     r   r   r     s     %%d%88r   r   c                 (    [         R                  XS9$ )zQParses global options from a config file.

See `OptionParser.parse_config_file`.
r/  )r   r   )r   r   s     r   r   r     s    
 $$T$77r   r   c                 ,    [         R                  U 5      $ )zaPrints all the command line options to stderr (or another file).

See `OptionParser.print_help`.
)r   r   r   s    r   r   r     s    
 d##r   c                 .    [         R                  U 5        g)ziAdds a parse callback, to be invoked when option parsing is done.

See `OptionParser.add_parse_callback`
N)r   r   )r'   s    r   r   r     s    
 x(r   r   r   r   rH   )(r   r   r   r*  rq   r   r   tornado.escaper   r   tornado.logr   tornado.utilr   r   typingr   r	   r
   r   r   r   r   r   r   r   r  r   r   r   r<   r   rx   r&   r*   r)   r   r   r   r   r   r   r   <module>r7     s   Tl   	 
 	  / . 1  	I 	i iX@ @<S Sl . !04
 4. 3-	
 c]  C= xt,- 
6 599
49
9-19	#Y98C 8 8 8$Xf% $ $)"d(!3 ) ) w r   