
    Mhe                     F   d 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m	Z	 ddl
mZ ddlmZmZ ddlmZmZmZmZmZmZmZmZmZmZ  G d de          Z G d	 d
          Z G d d          Z G d d          Z e            Z	 	 	 	 	 	 	 	 d#de dedee!         dee          dee          de"dee          deeegdf                  ddfdZ#	 d$deee                   de"dee          fdZ$d%de de"ddfdZ%d&d ee         ddfd!Z&deg df         ddfd"Z' ee           dS )'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                       e Zd ZdZdS )Errorz1Exception raised by errors in the options module.N)__name__
__module____qualname____doc__     O/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/tornado/options.pyr   r      s        ;;Dr   r   c                   D   e Zd ZdZd(dZdedefdZdedefdZdededdfd	Z	de
fd
ZdedefdZdedefdZdededdfdZdeeeef                  fdZdee         fdZdedeeef         fdZdeeef         fdZ	 	 	 	 	 	 	 d)dededee         dee         dee         dedee         deeegdf                  ddfdZ	 d*deee                  dedee         fdZd+dededdfd Zd,d!ee         ddfd"Z deddfd#Z!deg df         ddfd$Z"d(d%Z#d-d'Z$dS ).OptionParserzA 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                 t    i | j         d<   g | j         d<   |                     dt          d| j                   d S )N_options_parse_callbackshelpzshow this help information)typer!   callback)__dict__definebool_help_callbackselfs    r   __init__zOptionParser.__init__   sO    $&j!,.()-(	 	 	
 	
 	
 	
 	
r   namec                 .    |                     dd          S )N_-)replacer)   r+   s     r   _normalize_namezOptionParser._normalize_name   s    ||C%%%r   c                     |                      |          }t          | j                            |          t                    r| j        |                                         S t          d|z            NzUnrecognized option %r)r1   
isinstancer   get_OptionvalueAttributeErrorr0   s     r   __getattr__zOptionParser.__getattr__   sd    ##D))dm''--w77 	/=&,,...5<===r   r7   c                     |                      |          }t          | j                            |          t                    r | j        |                             |          S t          d|z            r3   )r1   r4   r   r5   r6   setr8   r)   r+   r7   s      r   __setattr__zOptionParser.__setattr__   sf    ##D))dm''--w77 	2=&**51115<===r   c                 H    d | j                                         D             S )Nc              3   $   K   | ]}|j         V  d S Nr+   .0opts     r   	<genexpr>z(OptionParser.__iter__.<locals>.<genexpr>   s$      ;;S;;;;;;r   r   valuesr(   s    r   __iter__zOptionParser.__iter__   s$    ;;DM$8$8$:$:;;;;r   c                 >    |                      |          }|| j        v S r@   )r1   r   r0   s     r   __contains__zOptionParser.__contains__   s"    ##D))t}$$r   c                 ,    |                      |          S r@   )r9   r0   s     r   __getitem__zOptionParser.__getitem__   s    %%%r   c                 .    |                      ||          S r@   )r=   r<   s      r   __setitem__zOptionParser.__setitem__   s    e,,,r   c                 H    d | j                                         D             S )zKAn iterable of (name, value) pairs.

        .. versionadded:: 3.1
        c                 J    g | ] \  }}|j         |                                f!S r   r+   r7   rC   r+   rD   s      r   
<listcomp>z&OptionParser.items.<locals>.<listcomp>   s+    OOOID#399;;'OOOr   r   itemsr(   s    r   rU   zOptionParser.items   s'    
 PO9L9L9N9NOOOOr   c                 H    d | j                                         D             S )zWThe set of option-groups created by ``define``.

        .. versionadded:: 3.1
        c                     h | ]	}|j         
S r   )
group_namerB   s     r   	<setcomp>z&OptionParser.groups.<locals>.<setcomp>   s    AAA3AAAr   rF   r(   s    r   groupszOptionParser.groups   s'    
 BA$-*>*>*@*@AAAAr   groupc                 N    fd| j                                         D             S )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
        c                 d    i | ],\  }}r|j         k    |j        |                                -S r   )rX   r+   r7   )rC   r+   rD   r[   s      r   
<dictcomp>z+OptionParser.group_dict.<locals>.<dictcomp>   sJ     
 
 
c
 "S^33 Hciikk333r   rT   )r)   r[   s    `r   
group_dictzOptionParser.group_dict   s<    "
 
 
 
!]0022
 
 
 	
r   c                 H    d | j                                         D             S )zLThe names and values of all options.

        .. versionadded:: 3.1
        c                 H    i | ]\  }}|j         |                                 S r   rQ   rR   s      r   r^   z(OptionParser.as_dict.<locals>.<dictcomp>   s(    MMM)$#))++MMMr   rT   r(   s    r   as_dictzOptionParser.as_dict   s'    
 NMt}7J7J7L7LMMMMr   Fdefaultr"   r!   metavarmultipler#   c	                    |                      |          }	|	| j        v r%t          d|	d| j        |	         j                  t	          j        d          }
|
_|
j        j        }|
j        1|
j        j        j        |k    r|
j        j        j	        dk    r|
j        }
|
j        J |
j        j        j        }nd}||k    rd}||s
||j
        }nt          }|r|}n|}t          |||||||||	  	        }|| j        |	<   dS )	ac  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_namerc   r"   r!   rd   re   rX   r#   )r1   r   r   ri   sys	_getframef_codeco_filenamef_backco_name	__class__strr6   )r)   r+   rc   r"   r!   rd   re   r[   r#   
normalizedframeoptions_fileri   rX   options                  r   r%   zOptionParser.define   sW   Z ))$//
&&%::t}Z8BBD   a   <3L
 (L'3|CCL'/8;;<++++7II#I$$I<  3( 	#JJ"J!

 

 

 %+j!!!r   Targsfinalc                    |t           j        }g }t          dt          |                    D ]}||                             d          s||d         } n||         dk    r||dz   d         } n||                             d          }|                    d          \  }}}|                     |          }|| j        vr&| 	                                 t          d|z            | j        |         }	|s%|	j        t          k    rd}nt          d|z            |	                    |           |r|                                  |S )	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   r.   z--=z$Unrecognized command line option: %rtruezOption %r requires a value)rj   argvrangelen
startswithlstrip	partitionr1   r   
print_helpr   r"   r&   parserun_parse_callbacks)
r)   rv   rw   	remainingiargr+   equalsr7   ru   s
             r   parse_command_linezOptionParser.parse_command_line;  sf   0 <8D	q#d))$$ 	  	 A7%%c**  H	Aw$ QM	q'..%%C"%--"4"4D&%''--D4=((!!!BTIJJJ]4(F E;$&&"EE <t CDDDLL 	'$$&&&r   pathc                    dt           j                            |          i}t          |d          5 }t	          t          |                                          ||           ddd           n# 1 swxY w Y   |D ]}|                     |          }|| j        v r| j        |         }|j	        rGt          ||         t          t          f          s%t          d|j        d|j        j        d          t          ||                   t          u r1|j        t          us|j	        r|                    ||                    |                    ||                    |r|                                  dS dS )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__rbNrg    is required to be a list of z or a comma-separated string)osr   abspathopenr   r   readr1   r   re   r4   listrq   r   r+   r"   r   r   r;   r   )r)   r   rw   configfr+   rr   ru   s           r   parse_config_filezOptionParser.parse_config_fileq  s   \ bgood334$ 	:Jqvvxx((&&999	: 	: 	: 	: 	: 	: 	: 	: 	: 	: 	: 	: 	: 	: 	: 	- 	-D--d33JT]**z2? %fTlT3K@@ #e  &{{{FK,@,@,@B   t%%,,Ks**fo*LL....JJvd|,,, 	'$$&&&&&	' 	's   1A//A36A3filec           	         |t           j        }t          dt           j        d         z  |           t          d|           i }| j                                        D ]0}|                    |j        g                               |           1t          |
                                          D ]>\  }}|r1t          dt          j                            |          z  |           |                    d            |D ]}|                     |j                  }|j        r|d	|j        z   z  }|j        pd
}|j        |j        d
k    r|d|j        z  z  }t)          j        |d          }t-          |          dk    st-          |          dk    r|                    dd
           t          d|dd|d         |           |dd         D ]}	t          ddd|	|           @t          |           dS )z@Prints all the command line options to stderr (or another file).NzUsage: %s [OPTIONS]r   r   z

Options:
z
%s options:
c                     | j         S r@   rA   )ru   s    r   <lambda>z)OptionParser.print_help.<locals>.<lambda>  s    fk r   )keyrz   rh   z (default %s),      z  --30 ry   34)rj   stderrprintr|   r   rG   
setdefaultrX   appendsortedrU   r   r   normpathsortr1   r+   rd   r!   rc   textwrapwrapr~   insert)
r)   r   by_groupru   filenameoprefixdescriptionlineslines
             r   r   zOptionParser.print_help  s4   <:D#chqk1====n4((((m**,, 	F 	FF 1266==fEEEE!(.."2"233 	? 	?KHa Q'"'*:*:8*D*DD4PPPPFF11F222 ? ?--fk::> 3cFN22F$k/R>-&.B2F2F?V^#CCK k7;;v;;##s5zzQLLB'''a9EEEE!!""I ? ?DTT2>>>>>?? 	4r   c                 ^    |r*|                                   t          j        d           d S d S )Nr   )r   rj   exitr)   r7   s     r   r'   zOptionParser._help_callback  s5     	OOHQKKKKK	 	r   c                 :    | j                             |           dS )zAAdds a parse callback, to be invoked when option parsing is done.N)r    r   r)   r#   s     r   add_parse_callbackzOptionParser.add_parse_callback  s    $$X.....r   c                 .    | j         D ]} |             d S r@   )r    r   s     r   r   z OptionParser.run_parse_callbacks  s+    - 	 	HHJJJJ	 	r   	_Mockablec                      t          |           S )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
        )r   r(   s    r   mockablezOptionParser.mockable  s     r   )r   NNNNNFNNNTTr@   )r   r   )%r   r   r   r   r*   rq   r1   r   r9   r=   r	   rH   r&   rJ   rL   rN   r
   r   rU   r   rZ   r   r_   rb   r   r"   r   r%   r   r   r   r   r   r'   r   r   r   r   r   r   r   r      s        	
 	
 	
 	
&C &C & & & &> > > > > >> >C >D > > > ><( < < < <% % % % % %& & & & & &- -C -D - - - -Pxc3h0 P P P PBC B B B B
 
S#X 
 
 
 
.Nc3h N N N N #"!%#48Z+ Z+Z+ Z+ tn	Z+
 smZ+ #Z+ Z+ }Z+ 8SE4K01Z+ 
Z+ Z+ Z+ Z+z ?C4 4T#Y'47;4	c4 4 4 4lE' E'c E'$ E'$ E' E' E' E'N x/ 4    <D T    
/8BH+= /$ / / / /        r   r   c                   V    e Zd ZdZdeddfdZdedefdZdededdfd	Z	deddfd
Z
dS )r   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                 .    || j         d<   i | j         d<   d S )Nr   
_originals)r$   )r)   r   s     r   r*   z_Mockable.__init__  s     $+j!&(l###r   r+   c                 ,    t          | j        |          S r@   )getattrr   r0   s     r   r9   z_Mockable.__getattr__  s    t}d+++r   r7   c                     || j         vs
J d            t          | j        |          | j         |<   t          | j        ||           d S )Nzdon't reuse mockable objects)r   r   r   setattrr<   s      r   r=   z_Mockable.__setattr__  sP    4?***,J*** 't < <tU+++++r   c                 b    t          | j        || j                            |                     d S r@   )r   r   r   popr0   s     r   __delattr__z_Mockable.__delattr__  s,    tT_%8%8%>%>?????r   )r   r   r   r   r   r*   rq   r   r9   r=   r   r   r   r   r   r     s        
 
) ) ) ) ) )
, , , , , ,, ,C ,D , , , ,
@ @ @ @ @ @ @ @r   r   c                      e Zd Z e            Z	 	 	 	 	 	 	 	 d!dededee         dee         dee         de	d	ee         d
ee         dee
egdf                  ddfdZdefdZdedefdZdeddfdZg dZdedej        fdZdddddddddd	ZdZ ej        dez  ej                  Zdedej        fdZdede	fdZdedefd ZdS )"r6   NFr+   rc   r"   r!   rd   re   ri   rX   r#   r   c
                     ||rg }|| _         |t          d          || _        || _        || _        || _        || _        || _        |	| _        || _	        t          j        | _        d S )Nztype must not be None)r+   
ValueErrorr"   r!   rd   re   ri   rX   r#   rc   r6   UNSET_value)
r)   r+   rc   r"   r!   rd   re   ri   rX   r#   s
             r   r*   z_Option.__init__  sr     ?x?G	<4555		 "$ mr   c                 D    | j         t          j        u r| j        n| j         S r@   )r   r6   r   rc   r(   s    r   r7   z_Option.value0  s    #{gm;;t||Lr   r7   c                    t           j         | j        t           j        | j        t          | j        t          | j        i                    | j	        | j	                  }| j
        rg | _        |                    d          D ]}t          | j	        t          j                  r_|                    d          \  }}} ||          }|r ||          n|}| j                            t%          ||dz                        | j                             ||                     n ||          | _        | j        |                     | j                   |                                 S )N,:ry   )datetime_parse_datetime	timedelta_parse_timedeltar&   _parse_boolr   _parse_stringr5   r"   re   r   split
issubclassnumbersIntegralr   extendr}   r   r#   r7   )	r)   r7   _parsepartlo_strr-   hi_strlohis	            r   r   z_Option.parse3  sT   t3 5$"T/	

 #Ity
 
 	 = 	(DKC(( 5 5di)9:: 5(,s(;(;%FAvB+19rBK&&uRa'8'89999K&&vvd||44445 !&--DK=$MM$+&&&zz||r   c           
         | j         rzt          |t                    s$t          d| j        d| j        j                  |D ]=}|9t          || j                  s$t          d| j        d| j        j                  >nL|Jt          || j                  s5t          d| j        d| j        j        dt          |          d          || _        | j        |                     | j                   d S d S )Nrg   r   z is required to be a z (z given))	re   r4   r   r   r+   r"   r   r   r#   )r)   r7   items      r   r;   z_Option.setM  s,   = 	eT** eyyy$)"4"46     #JtTY,G,G#%999di&8&8:    E49)E)E eyyy$)"4"4"4d5kkkk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                     | j         D ]4}	 t          j                            ||          c S # t          $ r Y 1w xY wt	          d|z            )Nz!Unrecognized date/time format: %r)_DATETIME_FORMATSr   strptimer   r   )r)   r7   formats      r   r   z_Option._parse_datetimer  sl    , 	 	F(11%@@@@@   7%?@@@s   -
::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                    	 t          j                    }d}|t          |          k     r| j                            ||          }|st                      t          |                    d                    }|                    d          pd}| j        	                    ||          }|t          j        di ||iz  }|
                                }|t          |          k     |S # t
          $ r  w xY w)Nr   ry      r   r   )r   r   r~   _TIMEDELTA_PATTERNmatch	Exceptionfloatr[   _TIMEDELTA_ABBREV_DICTr5   end)r)   r7   sumstartr   numunitss          r   r   z_Option._parse_timedelta  s    	$&&CE#e**$$+11%?? &#++%AGGAJJ''

/i377uEEx)99UCL999 #e**$$ J 	 	 		s   C%C( (C4c                 .    |                                 dvS )N)false0r   )lowerr   s     r   r   z_Option._parse_bool  s    {{}}$777r   c                      t          |          S r@   )r   r   s     r   r   z_Option._parse_string  s    r   )NNNNFNNN)r   r   r   objectr   rq   r   r   r"   r&   r   r*   r7   r   r;   r   r   r   r  _FLOAT_PATTERNrecompile
IGNORECASEr   r   r   r   r   r   r   r   r6   r6     s6        FHHE
 #"!%#'$(48$ $$ $ tn	$
 sm$ #$ $ C=$ SM$ 8SE4K01$ 
$ $ $ $6Ms M M M M3 3    4' ' ' ' ' '0  AS AX-> A A A A 
 
 FN#. c h.@    $8 8 8 8 8 83 3      r   r6   Fr+   rc   r"   r!   rd   re   r[   r#   r   c           
      F    t                               | |||||||          S )zODefines an option in the global namespace.

    See `OptionParser.define`.
    )rc   r"   r!   rd   re   r[   r#   )r   r%   )r+   rc   r"   r!   rd   re   r[   r#   s           r   r%   r%     s7     >>  	 	 	r   Trv   rw   c                 :    t                               | |          S )z]Parses global options from the command line.

    See `OptionParser.parse_command_line`.
    rw   )r   r   )rv   rw   s     r   r   r     s     %%d%%888r   r   c                 :    t                               | |          S )zYParses global options from a config file.

    See `OptionParser.parse_config_file`.
    r  )r   r   )r   rw   s     r   r   r     s    
 $$T$777r   r   c                 6    t                               |           S )ziPrints 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                 :    t                               |            dS )zqAdds 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   r@   )(r   r   r   r  rj   r   r   tornado.escaper   r   tornado.logr   tornado.utilr   r   typingr   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r6   r   rq   r"   r&   r%   r   r   r   r   r   r   r   <module>r     sY   T Tl   				 



 				  / / / / / / / / . . . . . . 1 1 1 1 1 1 1 1                       	 	 	 	 	I 	 	 	i i i i i i i iX@ @ @ @ @ @ @ @<S S S S S S S Sl ,.. !04 
 4. 3-	
 c]  C= xt,- 
   6 599 9
49
9-19	#Y9 9 9 98 8C 8 8 8 8 8 8$ $Xf% $ $ $ $ $)"d(!3 ) ) ) ) )  w     r   