MINI MINI MANI MO

Path : /usr/lib64/python3.6/__pycache__/
File Upload :
Current File : //usr/lib64/python3.6/__pycache__/argparse.cpython-36.pyc

3


 \a@s0dZdZdddddddd	d
ddd
dddddgZddlZddlZddlZddl	Z
ddlZddl
ZddlmZmZdZdZdZdZdZdZdZGdddeZdd ZGd!ddeZGd"ddeZGd#d	d	eZGd$ddeZGd%d
d
eZ d&d'Z!Gd(dde"Z#Gd)dde"Z$Gd*ddeZ%Gd+d,d,e%Z&Gd-d.d.e%Z'Gd/d0d0e'Z(Gd1d2d2e'Z)Gd3d4d4e%Z*Gd5d6d6e%Z+Gd7d8d8e%Z,Gd9d:d:e%Z-Gd;d<d<e%Z.Gd=d>d>e%Z/Gd?ddeZ0Gd@ddeZ1GdAdBdBeZ2GdCdDdDe2Z3GdEdFdFe3Z4GdGddee2Z5dS)Ha
Command-line parsing library

This module is an optparse-inspired command-line parsing library that:

    - handles both optional and positional arguments
    - produces highly informative usage messages
    - supports parsers that dispatch to sub-parsers

The following is a simple usage example that sums integers from the
command-line and writes the result to a file::

    parser = argparse.ArgumentParser(
        description='sum the integers at the command line')
    parser.add_argument(
        'integers', metavar='int', nargs='+', type=int,
        help='an integer to be summed')
    parser.add_argument(
        '--log', default=sys.stdout, type=argparse.FileType('w'),
        help='the file where the sum should be written')
    args = parser.parse_args()
    args.log.write('%s' % sum(args.integers))
    args.log.close()

The module contains the following public classes:

    - ArgumentParser -- The main entry point for command-line parsing. As the
        example above shows, the add_argument() method is used to populate
        the parser with actions for optional and positional arguments. Then
        the parse_args() method is invoked to convert the args at the
        command-line into an object with attributes.

    - ArgumentError -- The exception raised by ArgumentParser objects when
        there are errors with the parser's actions. Errors raised while
        parsing the command-line are caught by ArgumentParser and emitted
        as command-line messages.

    - FileType -- A factory for defining types of files to be created. As the
        example above shows, instances of FileType are typically passed as
        the type= argument of add_argument() calls.

    - Action -- The base class for parser actions. Typically actions are
        selected by passing strings like 'store_true' or 'append_const' to
        the action= argument of add_argument(). However, for greater
        customization of ArgumentParser actions, subclasses of Action may
        be defined and passed as the action= argument.

    - HelpFormatter, RawDescriptionHelpFormatter, RawTextHelpFormatter,
        ArgumentDefaultsHelpFormatter -- Formatter classes which
        may be passed as the formatter_class= argument to the
        ArgumentParser constructor. HelpFormatter is the default,
        RawDescriptionHelpFormatter and RawTextHelpFormatter tell the parser
        not to change the formatting for help text, and
        ArgumentDefaultsHelpFormatter adds information about argument defaults
        to the help.

All other classes in this module are considered implementation details.
(Also note that HelpFormatter and RawDescriptionHelpFormatter are only
considered public as object names -- the API of the formatter objects is
still considered an implementation detail.)
z1.1ArgumentParser
ArgumentErrorArgumentTypeErrorFileType
HelpFormatterArgumentDefaultsHelpFormatterRawDescriptionHelpFormatterRawTextHelpFormatterMetavarTypeHelpFormatter	NamespaceActionONE_OR_MOREOPTIONALPARSER	REMAINDERSUPPRESSZERO_OR_MOREN)gettextngettextz==SUPPRESS==?*+zA...z...Z_unrecognized_argsc@s(eZdZdZddZddZddZdS)	_AttributeHolderaAbstract base class that provides __repr__.

    The __repr__ method returns a string in the format::
        ClassName(attr=name, attr=name, ...)
    The attributes are determined either by a class-level attribute,
    '_kwarg_names', or by inspecting the instance __dict__.
    cCst|j}g}i}x|jD]}|jt|qWx8|jD],\}}|jr`|jd||fq<|||<q<W|r|jdt|d|dj|fS)Nz%s=%rz**%sz%s(%s)z, )type__name__	_get_argsappendrepr_get_kwargsisidentifierjoin)selfZ	type_namearg_stringsZ	star_argsargnamevaluer& /usr/lib64/python3.6/argparse.py__repr__vs
z_AttributeHolder.__repr__cCst|jjS)N)sorted__dict__items)r!r&r&r'rsz_AttributeHolder._get_kwargscCsgS)Nr&)r!r&r&r'rsz_AttributeHolder._get_argsN)r
__module____qualname____doc__r(rrr&r&r&r'rmsrcCs&t||ddkrt|||t||S)N)getattrsetattr)	namespacer$r%r&r&r'
_ensure_valuesr2c@seZdZdZd;ddZddZd	d
ZGdddeZd
dZ	ddZ
ddZddZd<ddZ
ddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd-d.Zd/d0Zd1d2Zd3d4Zd5d6Zd7d8Zd9d:ZdS)=rzFormatter for generating usage messages and argument help strings.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    NcCs|dkr@yttjd}Wnttfk
r6d}YnX|d8}||_||_||_t|t	|d|d|_||_
d|_d|_d|_
|j|d|_|j|_tjdtj|_tjd|_dS)NZCOLUMNSPr3rz\s+z\n\n\n+)int_osenvironKeyError
ValueError_prog_indent_increment_max_help_positionminmax_width_current_indent_level_action_max_length_Section
_root_section_current_section_recompileASCII_whitespace_matcher_long_break_matcher)r!progZindent_incrementZmax_help_positionwidthr&r&r'__init__s&
zHelpFormatter.__init__cCs"|j|j7_|jd7_dS)N)rBr=rC)r!r&r&r'_indentszHelpFormatter._indentcCs4|j|j8_|jdks"td|jd8_dS)NrzIndent decreased below 0.rP)rBr=AssertionErrorrC)r!r&r&r'_dedentszHelpFormatter._dedentc@seZdZdddZddZdS)zHelpFormatter._SectionNcCs||_||_||_g|_dS)N)	formatterparentheadingr+)r!rTrUrVr&r&r'rOszHelpFormatter._Section.__init__cCs|jdk	r|jj|jj}|dd|jD}|jdk	rD|jj|sLdS|jtk	rz|jdk	rz|jj}d|d|jf}nd}|d||dgS)NcSsg|]\}}||qSr&r&).0funcargsr&r&r'
<listcomp>sz6HelpFormatter._Section.format_help.<locals>.<listcomp>z%*s%s:

)	rUrTrQ_join_partsr+rSrVrrB)r!r Z	item_helpZcurrent_indentrVr&r&r'format_helps



z"HelpFormatter._Section.format_help)N)rr,r-rOr^r&r&r&r'rEs
rEcCs|jjj||fdS)N)rGr+r)r!rXrYr&r&r'	_add_itemszHelpFormatter._add_itemcCs0|j|j||j|}|j|jg||_dS)N)rQrErGr_r^)r!rVZsectionr&r&r'
start_sectionszHelpFormatter.start_sectioncCs|jj|_|jdS)N)rGrUrS)r!r&r&r'end_sections
zHelpFormatter.end_sectioncCs$|tk	r |dk	r |j|j|gdS)N)rr__format_text)r!textr&r&r'add_textszHelpFormatter.add_textcCs&|tk	r"||||f}|j|j|dS)N)rr_
_format_usage)r!usageactionsgroupsprefixrYr&r&r'	add_usageszHelpFormatter.add_usagecCsz|jtk	rv|j}||g}x |j|D]}|j||q&Wtdd|D}||j}t|j||_|j|j	|gdS)NcSsg|]}t|qSr&)len)rWsr&r&r'rZ
sz.HelpFormatter.add_argument.<locals>.<listcomp>)
helpr_format_action_invocation_iter_indented_subactionsrr@rBrDr__format_action)r!actionZget_invocationZinvocations	subactionZinvocation_lengthZ
action_lengthr&r&r'add_arguments


zHelpFormatter.add_argumentcCsx|D]}|j|qWdS)N)rs)r!rgrqr&r&r'
add_argumentss
zHelpFormatter.add_argumentscCs.|jj}|r*|jjd|}|jdd}|S)Nz

r\)rFr^rLsubstrip)r!rmr&r&r'r^s

zHelpFormatter.format_helpcCsdjdd|DS)Nr[cSsg|]}|r|tk	r|qSr&)r)rWpartr&r&r'rZ!sz-HelpFormatter._join_parts.<locals>.<listcomp>)r )r!Zpart_stringsr&r&r'r] s
zHelpFormatter._join_partscs<|dkrtd}|dk	r,|t|jd}n|dkrN|rNdt|jd}n|dkr0dt|jd}g}g}x(|D] }|jr|j|qv|j|qvW|j}	|	|||}
djdd||
gD}|j|jt	|t	|kr0d}|	||}|	||}
t
j||}t
j||
}dj||ks,tdj||
ks@tdfdd		}t	|t	|d
krdt	|t	|d}|r||g|||}|j
|||n |r||g|||}n|g}nZdt	|}||}|||}t	|dkrg}|j
||||j
||||g|}dj|}d
||fS)Nzusage: )rMz%(prog)s cSsg|]}|r|qSr&r&)rWrlr&r&r'rZAsz/HelpFormatter._format_usage.<locals>.<listcomp>z%\(.*?\)+(?=\s|$)|\[.*?\]+(?=\s|$)|\S+csg}g}|dk	rt|d}nt|d}xb|D]Z}|dt|krp|rp|j|dj|g}t|d}|j||t|d7}q0W|r|j|dj||dk	r|dt|d|d<|S)NrPrxr)rkrr )partsindentrilineslineZline_lenrw)
text_widthr&r'	get_linesUs"

z.HelpFormatter._format_usage.<locals>.get_linesg?rPr\z%s%s

)N)_dictr<option_stringsr_format_actions_usager rArBrkrHfindallrRextend)r!rfrgrhrirMZ	optionalspositionalsrqformatZaction_usageZpart_regexpZ	opt_usageZ	pos_usageZ	opt_partsZ	pos_partsr~rzr{ryr&)r}r're%sZ






zHelpFormatter._format_usagec
Cst}i}x|D]}y|j|jd}Wntk
r>wYqX|t|j}||||jkrx|jD]}|j|qhW|js||kr||d7<nd||<d||<n*||kr||d7<nd||<d||<xt|d|D]}	d	||	<qWqWg}
x2t|D]$\}	}|j	t
krj|
jd|j|	d	krF|j
|	n"|j|	dd	kr.|j
|	dn|js|j|}|j||}||kr|ddkr|ddkr|dd}|
j|nh|jd}
|jdkrd
|
}n"|j|}|j||}d|
|f}|jr$||kr$d|}|
j|q
Wx(t|d
dD]}	||	g|
|	|	<qBWdjdd|
D}d}d}tjd|d|}tjd|d|}tjd||fd|}tjdd|}|j}|S)Nrz [[]z (()rP|z%sz%s %sz[%s]T)reverserxcSsg|]}|dk	r|qS)Nr&)rWitemr&r&r'rZsz7HelpFormatter._format_actions_usage.<locals>.<listcomp>z[\[(]z[\])]z(%s) z\1z (%s)z%s *%sr[z\(([^|]*)\)r)setindex_group_actionsr;rkaddrequiredrange	enumeratermrrgetpopr#_get_default_metavar_for_positional_format_argsnargs!_get_default_metavar_for_optionalr)r rHrurv)r!rgrh
group_actionsZinsertsgroupstartendrqirydefaultrw
option_stringargs_stringrcopencloser&r&r'rsr







z#HelpFormatter._format_actions_usagecCsFd|kr|t|jd}t|j|jd}d|j}|j|||dS)Nz%(prog))rMrxz

)rr<r@rArB
_fill_text)r!rcr}rzr&r&r'rbs

zHelpFormatter._format_textc
CsBt|jd|j}t|j|d}||jd}|j|}|jsV|jd|f}d|}n@t||kr~|jd||f}d|}d}n|jd|f}d|}|}|g}|jr|j	|}	|j
|	|}
|jd|d|
dfx@|
ddD]}|jd|d|fqWn|jds|jdx$|j
|D]}|j|j|qW|j|S)	Nr3rr[z%*s%s
z	%*s%-*s  rrPr\)r?rDr>r@rArBrnrmrk_expand_help_split_linesrendswithrorpr])
r!rqZ
help_positionZ
help_widthZaction_widthZ
action_headertupZindent_firstryZ	help_textZ
help_linesr|rrr&r&r'rps6




zHelpFormatter._format_actioncCs|js&|j|}|j||d\}|Sg}|jdkrB|j|jn8|j|}|j||}x |jD]}|jd||fq`Wdj|SdS)NrPrz%s %sz, )	rr_metavar_formatterrrrrrr )r!rqrmetavarryrrr&r&r'rns


z'HelpFormatter._format_action_invocationcsP|jdk	r|jn.|jdk	r<dd|jD}ddj|n|fdd}|S)NcSsg|]}t|qSr&)str)rWZchoicer&r&r'rZ8sz4HelpFormatter._metavar_formatter.<locals>.<listcomp>z{%s},csttrSf|SdS)N)
isinstancetuple)Z
tuple_size)resultr&r'r=s
z0HelpFormatter._metavar_formatter.<locals>.format)rchoicesr )r!rqdefault_metavarZchoice_strsrr&)rr'r4s

z HelpFormatter._metavar_formattercCs|j||}|jdkr$d|d}n|jtkr<d|d}n|jtkrTd|d}nh|jtkrld|d}nP|jtkr|d}n@|jtkrd|d}n(d	d
t|jD}dj|||j}|S)Nz%srPz[%s]z
[%s [%s ...]]r3z%s [%s ...]z...z%s ...cSsg|]}dqS)z%sr&)rWrr&r&r'rZSsz.HelpFormatter._format_args.<locals>.<listcomp>rx)	rrr
rrrrrr )r!rqrZget_metavarrZformatsr&r&r'rDs 





zHelpFormatter._format_argscCstt||jd}x"t|D]}||tkr||=qWx,t|D] }t||dr@||j||<q@W|jddk	rdjdd|dD}||d<|j	||S)N)rMrrz, cSsg|]}t|qSr&)r)rWcr&r&r'rZ`sz.HelpFormatter._expand_help.<locals>.<listcomp>)
rvarsr<listrhasattrrrr _get_help_string)r!rqZparamsr$Zchoices_strr&r&r'rWs
zHelpFormatter._expand_helpccs@y
|j}Wntk
rYnX|j|EdH|jdS)N)_get_subactionsAttributeErrorrQrS)r!rqZget_subactionsr&r&r'rods
z'HelpFormatter._iter_indented_subactionscCs|jjd|j}tj||S)Nrx)rKrurv	_textwrapZwrap)r!rcrNr&r&r'rnszHelpFormatter._split_linescCs$|jjd|j}tj||||dS)Nrx)Zinitial_indentZsubsequent_indent)rKrurvrZfill)r!rcrNrzr&r&r'rrs
zHelpFormatter._fill_textcCs|jS)N)rm)r!rqr&r&r'rwszHelpFormatter._get_help_stringcCs
|jjS)N)destupper)r!rqr&r&r'rzsz/HelpFormatter._get_default_metavar_for_optionalcCs|jS)N)r)r!rqr&r&r'r}sz1HelpFormatter._get_default_metavar_for_positional)r3r4N)N) rr,r-r.rOrQrSobjectrEr_r`rardrjrsrtr^r]rerrbrprnrrrrorrrrrr&r&r&r'rs<

`a/

c@seZdZdZddZdS)rzHelp message formatter which retains any formatting in descriptions.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    cs djfdd|jddDS)Nr[c3s|]}|VqdS)Nr&)rWr|)rzr&r'	<genexpr>sz9RawDescriptionHelpFormatter._fill_text.<locals>.<genexpr>T)keepends)r 
splitlines)r!rcrNrzr&)rzr'rsz&RawDescriptionHelpFormatter._fill_textN)rr,r-r.rr&r&r&r'rsc@seZdZdZddZdS)rzHelp message formatter which retains formatting of all help text.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    cCs|jS)N)r)r!rcrNr&r&r'rsz!RawTextHelpFormatter._split_linesN)rr,r-r.rr&r&r&r'rsc@seZdZdZddZdS)rzHelp message formatter which adds default values to argument help.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    cCs>|j}d|jkr:|jtk	r:ttg}|js2|j|kr:|d7}|S)Nz
%(default)z (default: %(default)s))rmrrr
rrr)r!rqrmZdefaulting_nargsr&r&r'rs

z.ArgumentDefaultsHelpFormatter._get_help_stringN)rr,r-r.rr&r&r&r'rsc@s eZdZdZddZddZdS)r	aHelp message formatter which uses the argument 'type' as the default
    metavar value (instead of the argument 'dest')

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    cCs|jjS)N)rr)r!rqr&r&r'rsz:MetavarTypeHelpFormatter._get_default_metavar_for_optionalcCs|jjS)N)rr)r!rqr&r&r'rsz<MetavarTypeHelpFormatter._get_default_metavar_for_positionalN)rr,r-r.rrr&r&r&r'r	scCsN|dkrdS|jrdj|jS|jdtfkr2|jS|jdtfkrF|jSdSdS)N/)rr rrr)argumentr&r&r'_get_action_namesrc@s eZdZdZddZddZdS)rzAn error from creating or using an argument (optional or positional).

    The string value of this exception is the message, augmented with
    information about the argument that caused it.
    cCst||_||_dS)N)r
argument_namemessage)r!rrr&r&r'rOs
zArgumentError.__init__cCs(|jdkrd}nd}|t|j|jdS)Nz%(message)sz'argument %(argument_name)s: %(message)s)rr)rrr)r!rr&r&r'__str__s

zArgumentError.__str__N)rr,r-r.rOrr&r&r&r'rsc@seZdZdZdS)rz@An error from trying to convert a command line string to a type.N)rr,r-r.r&r&r&r'rsc@s,eZdZdZd
ddZddZddd	ZdS)ra\	Information about how to convert command line strings to Python objects.

    Action objects are used by an ArgumentParser to represent the information
    needed to parse a single argument from one or more strings from the
    command line. The keyword arguments to the Action constructor are also
    all attributes of Action instances.

    Keyword Arguments:

        - option_strings -- A list of command-line option strings which
            should be associated with this action.

        - dest -- The name of the attribute to hold the created object(s)

        - nargs -- The number of command-line arguments that should be
            consumed. By default, one argument will be consumed and a single
            value will be produced.  Other values include:
                - N (an integer) consumes N arguments (and produces a list)
                - '?' consumes zero or one arguments
                - '*' consumes zero or more arguments (and produces a list)
                - '+' consumes one or more arguments (and produces a list)
            Note that the difference between the default and nargs=1 is that
            with the default, a single value will be produced, while with
            nargs=1, a list containing a single value will be produced.

        - const -- The value to be produced if the option is specified and the
            option uses an action that takes no values.

        - default -- The value to be produced if the option is not specified.

        - type -- A callable that accepts a single string argument, and
            returns the converted value.  The standard Python types str, int,
            float, and complex are useful examples of such callables.  If None,
            str is used.

        - choices -- A container of values that should be allowed. If not None,
            after a command-line argument has been converted to the appropriate
            type, an exception will be raised if it is not a member of this
            collection.

        - required -- True if the action must always be specified at the
            command line. This is only meaningful for optional command-line
            arguments.

        - help -- The help string describing the argument.

        - metavar -- The name to be used for the option's argument with the
            help string. If None, the 'dest' value will be used as the name.
    NFcCs@||_||_||_||_||_||_||_||_|	|_|
|_	dS)N)
rrrconstrrrrrmr)r!rrrrrrrrrmrr&r&r'rOszAction.__init__c	s(ddddddddd	g	}fd
d|DS)Nrrrrrrrrmrcsg|]}|t|fqSr&)r/)rWr$)r!r&r'rZ;sz&Action._get_kwargs.<locals>.<listcomp>r&)r!namesr&)r!r'r/szAction._get_kwargscCsttddS)Nz.__call__() not defined)NotImplementedErrorr)r!parserr1valuesrr&r&r'__call__=szAction.__call__)NNNNNFNN)N)rr,r-r.rOrrr&r&r&r'rs1
cs(eZdZdfdd	ZdddZZS)	_StoreActionNFcsT|dkrtd|dk	r,|tkr,tdttt|j|||||||||	|
d
dS)Nrznargs for store actions must be > 0; if you have nothing to store, actions such as store true or store const may be more appropriatez nargs must be %r to supply const)
rrrrrrrrrmr)r;r
superrrO)r!rrrrrrrrrmr)	__class__r&r'rOCs
z_StoreAction.__init__cCst||j|dS)N)r0r)r!rr1rrr&r&r'r`sz_StoreAction.__call__)NNNNNFNN)N)rr,r-rOr
__classcell__r&r&)rr'rAsrcs(eZdZdfdd	ZdddZZS)	_StoreConstActionNFc	s"tt|j||d||||ddS)Nr)rrrrrrrm)rrrO)r!rrrrrrmr)rr&r'rOfs
z_StoreConstAction.__init__cCst||j|jdS)N)r0rr)r!rr1rrr&r&r'rwsz_StoreConstAction.__call__)NFNN)N)rr,r-rOrrr&r&)rr'rds

rcseZdZdfdd	ZZS)_StoreTrueActionFNcs tt|j||d|||ddS)NT)rrrrrrm)rrrO)r!rrrrrm)rr&r'rO}s
z_StoreTrueAction.__init__)FFN)rr,r-rOrr&r&)rr'r{srcseZdZdfdd	ZZS)_StoreFalseActionTFNcs tt|j||d|||ddS)NF)rrrrrrm)rrrO)r!rrrrrm)rr&r'rOs
z_StoreFalseAction.__init__)TFN)rr,r-rOrr&r&)rr'rsrcs(eZdZdfdd	ZdddZZS)	
_AppendActionNFcsT|dkrtd|dk	r,|tkr,tdttt|j|||||||||	|
d
dS)Nrznargs for append actions must be > 0; if arg strings are not supplying the value to append, the append const action may be more appropriatez nargs must be %r to supply const)
rrrrrrrrrmr)r;r
rrrO)r!rrrrrrrrrmr)rr&r'rOs
z_AppendAction.__init__cCs0tjt||jg}|j|t||j|dS)N)_copycopyr2rrr0)r!rr1rrr+r&r&r'rs
z_AppendAction.__call__)NNNNNFNN)N)rr,r-rOrrr&r&)rr'rsrcs(eZdZdfdd	ZdddZZS)	_AppendConstActionNFc
s$tt|j||d|||||ddS)Nr)rrrrrrrmr)rrrO)r!rrrrrrmr)rr&r'rOs
z_AppendConstAction.__init__cCs2tjt||jg}|j|jt||j|dS)N)rrr2rrrr0)r!rr1rrr+r&r&r'rsz_AppendConstAction.__call__)NFNN)N)rr,r-rOrrr&r&)rr'rs
rcs(eZdZdfdd	ZdddZZS)	_CountActionNFcs tt|j||d|||ddS)Nr)rrrrrrm)rrrO)r!rrrrrm)rr&r'rOs
z_CountAction.__init__cCs$t||jdd}t||j|dS)NrrP)r2rr0)r!rr1rrZ	new_countr&r&r'rsz_CountAction.__call__)NFN)N)rr,r-rOrrr&r&)rr'rs	rcs.eZdZeedffdd	ZdddZZS)_HelpActionNcstt|j|||d|ddS)Nr)rrrrrm)rrrO)r!rrrrm)rr&r'rOs
z_HelpAction.__init__cCs|j|jdS)N)
print_helpexit)r!rr1rrr&r&r'rsz_HelpAction.__call__)N)rr,r-rrOrrr&r&)rr'rsrcs0eZdZdeedffdd	ZdddZZS)_VersionActionNz&show program's version number and exitcs$tt|j|||d|d||_dS)Nr)rrrrrm)rrrOversion)r!rrrrrm)rr&r'rOs
z_VersionAction.__init__cCsD|j}|dkr|j}|j}|j||j|jtj|jdS)N)r_get_formatterrd_print_messager^_sysstdoutr)r!rr1rrrrTr&r&r'rs
z_VersionAction.__call__)N)rr,r-rrOrrr&r&)rr'rs
	rcsNeZdZGdddeZeddffdd	ZddZdd	Zdd
dZ	Z
S)
_SubParsersActioncseZdZfddZZS)z&_SubParsersAction._ChoicesPseudoActioncs@|}}|r|ddj|7}ttj|}|jg|||ddS)Nz (%s)z, )rrrmr)r rr_ChoicesPseudoActionrO)r!r$aliasesrmrrZsup)rr&r'rO"s
z/_SubParsersAction._ChoicesPseudoAction.__init__)rr,r-rOrr&r&)rr'r srNcs>||_||_tj|_g|_tt|j||t	|j||ddS)N)rrrrrmr)
_prog_prefix
_parser_class_collectionsOrderedDict_name_parser_map_choices_actionsrrrOr)r!rrMparser_classrrmr)rr&r'rO*s

z_SubParsersAction.__init__cKs|jddkr d|j|f|d<|jdf}d|krX|jd}|j|||}|jj||jf|}||j|<x|D]}||j|<qtW|S)NrMz%s %srrm)rrrrrrrr)r!r$kwargsrrmZ
choice_actionraliasr&r&r'
add_parser?s


z_SubParsersAction.add_parsercCs|jS)N)r)r!r&r&r'rVsz!_SubParsersAction._get_subactionsc
Cs|d}|dd}|jtk	r,t||j|y|j|}Wn<tk
rv|dj|jd}td|}t||YnX|j|d\}	}x$t	|	j
D]\}
}t||
|qW|rt	|jtgt
|tj|dS)NrrPz, )parser_namerz5unknown parser %(parser_name)r (choices: %(choices)s))rrr0rr:r rrparse_known_argsrr+
setdefault_UNRECOGNIZED_ARGS_ATTRr/r)r!rr1rrrr"rYmsgZsubnamespacekeyr%r&r&r'rYs"
	z_SubParsersAction.__call__)N)rr,r-rrrrOrrrrr&r&)rr'rsrc@s*eZdZdZdddZddZd	d
ZdS)
raFactory for creating file object types

    Instances of FileType are typically passed as type= arguments to the
    ArgumentParser add_argument() method.

    Keyword Arguments:
        - mode -- A string indicating how the file is to be opened. Accepts the
            same values as the builtin open() function.
        - bufsize -- The file's desired buffer size. Accepts the same values as
            the builtin open() function.
        - encoding -- The file's encoding. Accepts the same values as the
            builtin open() function.
        - errors -- A string indicating how encoding and decoding errors are to
            be handled. Accepts the same value as the builtin open() function.
    rrPNcCs||_||_||_||_dS)N)_mode_bufsize	_encoding_errors)r!modebufsizeencodingerrorsr&r&r'rOszFileType.__init__cCs|dkr>d|jkrtjSd|jkr(tjStd|j}t|yt||j|j|j|j	St
k
r}ztd}t|||fWYdd}~XnXdS)N-rwzargument "-" with mode %rzcan't open '%s': %s)rrstdinrrr;rrrrOSErrorr)r!stringrerr&r&r'rs

zFileType.__call__cCsT|j|jf}d|jfd|jfg}djdd|Ddd|D}dt|j|fS)Nrrz, cSsg|]}|dkrt|qS)rPr)r)rWr#r&r&r'rZsz%FileType.__repr__.<locals>.<listcomp>cSs$g|]\}}|dk	rd||fqS)Nz%s=%rr&)rWkwr#r&r&r'rZsz%s(%s))rrrrr rr)r!rYrZargs_strr&r&r'r(s
zFileType.__repr__r)rrNN)rr,r-r.rOrr(r&r&r&r'r~s
c@s(eZdZdZddZddZddZdS)	r
zSimple object for storing attributes.

    Implements equality by attribute names and values, and provides a simple
    string representation.
    cKs"x|D]}t||||qWdS)N)r0)r!rr$r&r&r'rOs
zNamespace.__init__cCst|tstSt|t|kS)N)rr
NotImplementedr)r!otherr&r&r'__eq__s
zNamespace.__eq__cCs
||jkS)N)r*)r!rr&r&r'__contains__szNamespace.__contains__N)rr,r-r.rOr	r
r&r&r&r'r
scseZdZfddZddZd&ddZdd	Zd
dZdd
ZddZ	ddZ
ddZddZddZ
ddZddZd'ddZddZd d!Zd"d#Zd$d%ZZS)(_ActionsContainercstt|j||_||_||_||_i|_|jddt	|jddt	|jddt
|jddt|jddt|jddt
|jddt|jddt|jdd	t|jdd
t|jddt|jg|_i|_g|_g|_i|_tjd|_g|_dS)
NrqZstoreZstore_const
store_trueZstore_falserZappend_constcountrmrparsersz^-\d+$|^-\d*\.\d+$)rrrOdescriptionargument_defaultprefix_charsconflict_handler_registriesregisterrrrrrrrrrr_get_handler_actions_option_string_actions_action_groups_mutually_exclusive_groups	_defaultsrHrI_negative_number_matcher_has_negative_number_optionals)r!rrrr)rr&r'rOs2z_ActionsContainer.__init__cCs|jj|i}|||<dS)N)rr)r!
registry_namer%rregistryr&r&r'rsz_ActionsContainer.registerNcCs|j|j||S)N)rr)r!rr%rr&r&r'
_registry_getsz_ActionsContainer._registry_getcKs6|jj|x$|jD]}|j|kr||j|_qWdS)N)rupdaterrr)r!rrqr&r&r'set_defaultss
z_ActionsContainer.set_defaultscCs8x(|jD]}|j|kr|jdk	r|jSqW|jj|dS)N)rrrrr)r!rrqr&r&r'get_defaults
z_ActionsContainer.get_defaultcOs0|j}|s(t|dkrJ|dd|krJ|r<d|kr<td|j||}n|j||}d|kr|d}||jkr|j||d<n|jdk	r|j|d<|j|}t|std|f|f|}|j	d|j
|j
}t|std	|ft|d
r&y|jj
|dWntk
r$tdYnX|j|S)z
        add_argument(dest, ..., name=value, ...)
        add_argument(option_string, option_string, ..., name=value, ...)
        rPrrz+dest supplied twice for positional argumentrNzunknown action "%s"rz%r is not callablerz,length of metavar tuple does not match nargs)rrkr;_get_positional_kwargs_get_optional_kwargsrr_pop_action_classcallablerrrrr	TypeError_add_action)r!rYrcharsrZaction_classrq	type_funcr&r&r'rss2	"




z_ActionsContainer.add_argumentcOs t|f||}|jj||S)N)_ArgumentGrouprr)r!rYrrr&r&r'add_argument_groupJsz$_ActionsContainer.add_argument_groupcKst|f|}|jj||S)N)_MutuallyExclusiveGrouprr)r!rrr&r&r'add_mutually_exclusive_groupOsz._ActionsContainer.add_mutually_exclusive_groupcCsh|j||jj|||_x|jD]}||j|<q$Wx,|jD]"}|jj|r>|js>|jjdq>W|S)NT)	_check_conflictrr	containerrrrmatchr)r!rqrr&r&r'r(Ts
z_ActionsContainer._add_actioncCs|jj|dS)N)rremove)r!rqr&r&r'_remove_actionisz _ActionsContainer._remove_actioncCsi}x8|jD].}|j|kr0td}t||j|||j<qWi}xR|jD]H}|j|krt|j|j|j|jd||j<x|jD]}||j||<q|WqJWx4|jD]*}|j	|j
d}x|jD]}|||<qWqWx |jD]}|j||j
|qWdS)Nz.cannot merge actions - two groups are named %r)titlerr)r)rr4rr;r,rrrrr.rrrr()r!r0Ztitle_group_maprrZ	group_maprqmutex_groupr&r&r'_add_container_actionsls,


z(_ActionsContainer._add_container_actionscKs^d|krtd}t||jdttgkr2d|d<|jdtkrPd|krPd|d<t||gdS)Nrz1'required' is an invalid argument for positionalsrTr)rr)rr'rr
rr)r!rrrr&r&r'r#sz(_ActionsContainer._get_positional_kwargsc	Osg}g}xv|D]n}|d|jkr@||jd}td}t|||j||d|jkrt|dkr|d|jkr|j|qW|jdd}|dkr|r|d}n|d}|j|j}|std}t|||jdd}t|||d	S)
Nr)optionrzNinvalid option string %(option)r: must start with a character %(prefix_chars)rrPrz%dest= is required for options like %rrr)rr)	rrr;rrkrlstripreplacer)	r!rYrrZlong_option_stringsrrrZdest_option_stringr&r&r'r$s0



z&_ActionsContainer._get_optional_kwargscCs|jd|}|jd||S)Nrq)rr)r!rrrqr&r&r'r%sz#_ActionsContainer._pop_action_classcCsDd|j}y
t||Stk
r>td}t||jYnXdS)Nz_handle_conflict_%sz%invalid conflict_resolution value: %r)rr/rrr;)r!Zhandler_func_namerr&r&r'rs

z_ActionsContainer._get_handlercCsPg}x0|jD]&}||jkr|j|}|j||fqW|rL|j}|||dS)N)rrrr)r!rqZconfl_optionalsrZconfl_optionalrr&r&r'r/s

z!_ActionsContainer._check_conflictcCs6tddt|}djdd|D}t|||dS)Nzconflicting option string: %szconflicting option strings: %sz, cSsg|]\}}|qSr&r&)rWrrqr&r&r'rZsz<_ActionsContainer._handle_conflict_error.<locals>.<listcomp>)rrkr r)r!rqconflicting_actionsrZconflict_stringr&r&r'_handle_conflict_errors


z(_ActionsContainer._handle_conflict_errorcCsBx<|D]4\}}|jj||jj|d|js|jj|qWdS)N)rr2rrr0r3)r!rqr:rr&r&r'_handle_conflict_resolves
z*_ActionsContainer._handle_conflict_resolve)N)N)rr,r-rOrrr!r"rsr,r.r(r3r6r#r$r%rr/r;r<rr&r&)rr'rs$4
	
/($
		rcs6eZdZdfdd	ZfddZfddZZS)	r+Ncs|j}|d|j|d|j|d|jtt|j}|fd|i|||_g|_|j	|_	|j
|_
|j|_|j|_|j
|_
|j|_dS)Nrrrr)rrrrrr+rOr4rrrrrrr)r!r0r4rrr Z
super_init)rr&r'rOsz_ArgumentGroup.__init__cs tt|j|}|jj||S)N)rr+r(rr)r!rq)rr&r'r(sz_ArgumentGroup._add_actioncs tt|j||jj|dS)N)rr+r3rr2)r!rq)rr&r'r3sz_ArgumentGroup._remove_action)NN)rr,r-rOr(r3rr&r&)rr'r+sr+cs.eZdZdfdd	ZddZddZZS)	r-Fcs tt|j|||_||_dS)N)rr-rOr
_container)r!r0r)rr&r'rOsz _MutuallyExclusiveGroup.__init__cCs2|jrtd}t||jj|}|jj||S)Nz-mutually exclusive arguments must be optional)rrr;r=r(rr)r!rqrr&r&r'r($sz#_MutuallyExclusiveGroup._add_actioncCs|jj||jj|dS)N)r=r3rr2)r!rqr&r&r'r3,sz&_MutuallyExclusiveGroup._remove_action)F)rr,r-rOr(r3rr&r&)rr'r-sr-cseZdZdZddddgeddddddffdd	Zdd	Zd
dZdd
ZddZ	ddZ
d=ddZd>ddZddZ
ddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd?d2d3Zd@d4d5ZdAd6d7ZdBd9d:Zd;d<ZZ S)CraObject for parsing command line strings into Python objects.

    Keyword Arguments:
        - prog -- The name of the program (default: sys.argv[0])
        - usage -- A usage message (default: auto-generated from arguments)
        - description -- A description of what the program does
        - epilog -- Text following the argument descriptions
        - parents -- Parsers whose arguments should be copied into this one
        - formatter_class -- HelpFormatter class for printing help messages
        - prefix_chars -- Characters that prefix optional arguments
        - fromfile_prefix_chars -- Characters that prefix files containing
            additional arguments
        - argument_default -- The default value for all arguments
        - conflict_handler -- String indicating how to handle conflicts
        - add_help -- Add a -h/-help option
        - allow_abbrev -- Allow long options to be abbreviated unambiguously
    NrerrorTc
s&tt|j}
|
|||	|
d|dkr6tjjtjd}||_||_	||_
||_||_||_
||_|j}|td|_|td|_d|_dd}|jdd|d|krdn|d}|j
r|j|d	|d
ddttdd
xD|D]<}|j|y
|j}Wntk
rYqX|jj|qWdS)N)rrrrrzpositional argumentszoptional argumentscSs|S)Nr&)rr&r&r'identityjsz)ArgumentParser.__init__.<locals>.identityrrhr3rmzshow this help message and exit)rqrrm)rrrOr8pathbasenamerargvrMrfepilogformatter_classfromfile_prefix_charsadd_helpallow_abbrevr,r_positionals
_optionals_subparsersrrsrr6rrr )r!rMrfrrDparentsrErrFrrrGrHZ	superinitZ	add_groupr?Zdefault_prefixrUZdefaults)rr&r'rODsB


zArgumentParser.__init__cs"ddddddg}fdd|DS)	NrMrfrrErrGcsg|]}|t|fqSr&)r/)rWr$)r!r&r'rZsz.ArgumentParser._get_kwargs.<locals>.<listcomp>r&)r!rr&)r!r'rszArgumentParser._get_kwargsc	Ks|jdk	r|jtd|jdt|d|ks8d|krht|jdd}t|jdd}|j|||_n|j|_|jddkr|j	}|j
}|j}|j|j
||d|jj|d<|j|d}|fd	gi|}|jj||S)
Nz(cannot have multiple subparser argumentsrr4rZsubcommandsrMr[rr)rKr>rrrrr,rIrr_get_positional_actionsrrjrfr^rvr%r()	r!rr4rrTrrhZ
parsers_classrqr&r&r'add_subparserss$
zArgumentParser.add_subparserscCs$|jr|jj|n|jj||S)N)rrJr(rI)r!rqr&r&r'r(szArgumentParser._add_actioncCsdd|jDS)NcSsg|]}|jr|qSr&)r)rWrqr&r&r'rZsz8ArgumentParser._get_optional_actions.<locals>.<listcomp>)r)r!r&r&r'_get_optional_actionssz$ArgumentParser._get_optional_actionscCsdd|jDS)NcSsg|]}|js|qSr&)r)rWrqr&r&r'rZsz:ArgumentParser._get_positional_actions.<locals>.<listcomp>)r)r!r&r&r'rMsz&ArgumentParser._get_positional_actionscCs4|j||\}}|r0td}|j|dj||S)Nzunrecognized arguments: %srx)rrr>r )r!rYr1rCrr&r&r'
parse_argss
zArgumentParser.parse_argscCs|dkrtjdd}nt|}|dkr.t}x>|jD]4}|jtk	r6t||js6|jtk	r6t	||j|jq6Wx*|j
D] }t||svt	|||j
|qvWy<|j||\}}t|tr|j
t|tt|t||fStk
rtjd}|jt|YnXdS)NrP)rrCrr
rrrrrr0r_parse_known_argsrrr/delattrrexc_infor>r)r!rYr1rqrerrr&r&r'rs,




zArgumentParser.parse_known_argscs"	jdk	r	jix`	jD]V}|j}xJt|jD]<\}}j|g}|j|d||j||ddq6Wq Wig}t}	xnt|	D]b\}}
|
dkr|jdxF|	D]}
|jdqWq	j	|
}|dkrd}n||<d}|j|qWdj
|ttd	fdd		fd	d
}
	j	fdd}gd
rpt
}nd}x|
|krt
fddD}
|kr|
}|
kr|
qvn|

kr
|}j||
|

qvW|
}j|dg}x	jD]|}|kr|jr>|jt|nT|jdk	rt|jtrt|jr|jt|jkrt|j	j||jqW|r	jtddj
|xb	jD]X}|jrxH|jD]}|krPqWdd|jD}td}	j|dj
|qWfS)NrPz--rAOr[csj|j||}||jk	rfj|x:j|gD]*}|kr8td}t|}t|||q8W|tk	r||||dS)Nznot allowed with argument %s)r_get_valuesrrrrrr)rqZargument_stringsrZargument_valuesZconflict_actionrZaction_name)action_conflictsr1seen_actionsseen_non_default_actionsr!r&r'take_actions


z5ArgumentParser._parse_known_args.<locals>.take_actioncs|}|\}}}j}g}x>|dkr>j||dS|dk	r||d}j}|dkr|d|kr|j|g|f|d}	|	|d}|ddpd}
j}||kr||}|
}ntd}t|||n@|dkr|d}
|g}|j|||fPntd}t|||q |d}|d}|||}||}
||
}|j|||fPq W|shtx |D]\}}}|||qnW|
S)NrPrUrzignored explicit argument %r)_match_argumentrrrrrrR)start_indexoption_tuplerqrexplicit_argZmatch_argumentZ
action_tuples	arg_countr)charZnew_explicit_argZ
optionals_maprstoprYrZselected_patterns)r"arg_strings_patternextrasoption_string_indicesr!r[r&r'consume_optional3sP




z:ArgumentParser._parse_known_args.<locals>.consume_optionalcsrj}|d}||}x8t|D]*\}}|||}||7}||q(Wt|ddd<|S)N)_match_arguments_partialziprk)r]Z
match_partialZselected_patternZ
arg_countsrqr`rY)r"rcrr!r[r&r'consume_positionalss
z=ArgumentParser._parse_known_args.<locals>.consume_positionalsrcsg|]}|kr|qSr&r&)rWr)r]r&r'rZsz4ArgumentParser._parse_known_args.<locals>.<listcomp>z(the following arguments are required: %sz, cSsg|]}|jtk	rt|qSr&)rmrr)rWrqr&r&r'rZsz#one of the arguments %s is requiredrx)Nr)rF_read_args_from_filesrrrrriterr_parse_optionalr rrMr@r?rrrrrrrrr/r0
_get_valuer>r)r!r"r1r5rrZmutex_actionZ	conflictsZarg_string_pattern_partsZarg_strings_iter
arg_stringr^patternrfriZmax_option_string_indexZnext_option_string_indexZpositionals_end_indexZstringsZ
stop_indexZrequired_actionsrqrrrr&)rXr"rcrdr1rerrYrZr!r]r[r'rQs





J










z ArgumentParser._parse_known_argscCsg}x|D]}|s"|d|jkr.|j|q
ylt|ddR}g}x2|jjD]"}x|j|D]}|j|qdWqTW|j|}|j|WdQRXWq
tk
rt	j
d}|jt|Yq
Xq
W|S)NrrP)
rFrrreadrconvert_arg_line_to_argsrjrrrrSr>r)r!r"Znew_arg_stringsrnZ	args_filearg_liner#rTr&r&r'rjs 

z$ArgumentParser._read_args_from_filescCs|gS)Nr&)r!rrr&r&r'rqsz'ArgumentParser.convert_arg_line_to_argscCst|j|}tj||}|dkrfdtdttdttdi}tdd|j|j}|j|j|}t	||t
|jdS)Nzexpected one argumentzexpected at most one argumentzexpected at least one argumentzexpected %s argumentzexpected %s argumentsrP)_get_nargs_patternrHr1rr
rrrrrrkr)r!rqrc
nargs_patternr1Znargs_errorsrrr&r&r'r\s

zArgumentParser._match_argumentcstg}xjtt|ddD]V}|d|}djfdd|D}tj||}|dk	r|jdd|jDPqW|S)NrrPr[csg|]}j|qSr&)rs)rWrq)r!r&r'rZsz;ArgumentParser._match_arguments_partial.<locals>.<listcomp>cSsg|]}t|qSr&)rk)rWrr&r&r'rZ!sr)rrkr rHr1rrh)r!rgrcrrZ
actions_sliceror1r&)r!r'rgs
z'ArgumentParser._match_arguments_partialc
Cs|sdS|d|jkrdS||jkr8|j|}||dfSt|dkrHdSd|kr~|jdd\}}||jkr~|j|}|||fS|jr|j|}t|dkrdjdd|D}||d}td}|j||nt|dkr|\}	|	S|j	j
|r|jsdSd	|krdSd|dfS)
NrrP=z, cSsg|]\}}}|qSr&r&)rWrqrr_r&r&r'rZGsz2ArgumentParser._parse_optional.<locals>.<listcomp>)r7Zmatchesz4ambiguous option: %(option)s could match %(matches)srx)rrrksplitrH_get_option_tuplesr rr>rr1r)
r!rnrqrr_Z
option_tuplesZoptionsrYrr^r&r&r'rl's>










zArgumentParser._parse_optionalc
Cs0g}|j}|d|kr~|d|kr~d|kr<|jdd\}}n|}d}x|jD],}|j|rL|j|}|||f}|j|qLWn|d|ko|d|kr|}d}|dd}|dd}	xr|jD]T}||kr|j|}|||	f}|j|q|j|r|j|}|||f}|j|qWn|jtd||S)NrrPrur3zunexpected option string: %s)rrvr
startswithrr>r)
r!rrr)Z
option_prefixr_rqrZshort_option_prefixZshort_explicit_argr&r&r'rwbs8







z!ArgumentParser._get_option_tuplescCs|j}|dkrd}nX|tkr"d}nJ|tkr0d}n<|tkr>d}n.|tkrLd}n |tkrZd}nddjd	|}|jr|jdd
}|jdd
}|S)Nz(-*A-*)z(-*A?-*)z	(-*[A-]*)z
(-*A[A-]*)z([-AO]*)z(-*A[-AO]*)z(-*%s-*)z-*rUr[r)	rr
rrrrr rr9)r!rqrrtr&r&r'rss$z!ArgumentParser._get_nargs_patterncsxjttgkr2y|jdWntk
r0YnX|rzjtkrzjrPj}nj}t	|t
rxj|}j|n|rjt
krjrjdk	rj}n|}j|nt|dkrjdtgkr|\}j|}j|njtkrfdd|D}nbjtkrDfdd|D}j|dn0fdd|D}x|D]}j|q^W|S)Nz--rPcsg|]}j|qSr&)rm)rWv)rqr!r&r'rZsz.ArgumentParser._get_values.<locals>.<listcomp>csg|]}j|qSr&)rm)rWry)rqr!r&r'rZsrcsg|]}j|qSr&)rm)rWry)rqr!r&r'rZs)rrrr2r;r
rrrrrrm_check_valuerrk)r!rqr"r%rnryr&)rqr!r'rWs>


zArgumentParser._get_valuescCs|jd|j|j}t|s0td}t|||y||}Wntk
r~t|jdt|j}tt	j
d}t||YnLttfk
rt|jdt|j}||d}td}t|||YnX|S)Nrz%r is not callablerrP)rr%z!invalid %(type)s value: %(value)r)
rrr&rrrr/rrrrSr'r;)r!rqrnr*rrr$rYr&r&r'rms 
zArgumentParser._get_valuecCsF|jdk	rB||jkrB|djtt|jd}td}t|||dS)Nz, )r%rz3invalid choice: %(value)r (choose from %(choices)s))rr maprrr)r!rqr%rYrr&r&r'rz	s
zArgumentParser._check_valuecCs$|j}|j|j|j|j|jS)N)rrjrfrrr^)r!rTr&r&r'format_usage	szArgumentParser.format_usagecCsx|j}|j|j|j|j|j|jx:|jD]0}|j|j	|j|j|j
|j|jq0W|j|j
|jS)N)rrjrfrrrdrrr`r4rtrrarDr^)r!rTZaction_groupr&r&r'r^	szArgumentParser.format_helpcCs|j|jdS)N)rM)rErM)r!r&r&r'r0	szArgumentParser._get_formattercCs"|dkrtj}|j|j|dS)N)rrrr|)r!filer&r&r'print_usage6	szArgumentParser.print_usagecCs"|dkrtj}|j|j|dS)N)rrrr^)r!r}r&r&r'r;	szArgumentParser.print_helpcCs |r|dkrtj}|j|dS)N)rstderrwrite)r!rr}r&r&r'r@	szArgumentParser._print_messagercCs |r|j|tjtj|dS)N)rrrr)r!Zstatusrr&r&r'rI	szArgumentParser.exitcCs0|jtj|j|d}|jdtd|dS)zerror(message: string)

        Prints a usage message incorporating the message to stderr and
        exits.

        If you override this in a subclass, it should not return -- it
        should either exit or raise an exception.
        )rMrr3z%(prog)s: error: %(message)s
N)r~rrrMrr)r!rrYr&r&r'r>N	s	zArgumentParser.error)NN)NN)N)N)N)rN)!rr,r-r.rrOrrNr(rOrMrPrrQrjrqr\rgrlrwrsrWrmrzr|r^rr~rrrr>rr&r&)rr'r1sP4

#w;,,4


	
)6r.__version____all__collectionsrrrosr8rerHsysrtextwraprrrrrr
rrrrrrrr2rrrrr	r	Exceptionrrrrrrrrrrrrrrr
rr+r-rr&r&r&r'<module>>s
n
	[#%`65"

OHA YOOOO