403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.217.15
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/mercurial/__pycache__/fancyopts.cpython-313.pyc
�

6�h-����SSKJr SSKrSSKrSSKJr SSKJrJr 1Skr	Sr
SSjr"S	S
5r"SS\5r
"S
S\5r"SS\5r"SS\5rSrSSjrg)�)�annotationsN�)�_)�error�pycompat>�help�version�noninteractivec��URS5(aIURS5up4nUSSU;aU[U5US4$USSS-U;aU[U5US4$gURS5(a`US:waZURS5(dDUSSUSSpSURUS	S5nUS
:�a!U[U5XQRSUS	-54$g)
a�Check if the given arg is a valid unabbreviated option

Returns (flag_str, has_embedded_value?, embedded_value, takes_value?)

>>> def opt(arg):
...     return _earlyoptarg(arg, b'R:q', [b'cwd=', b'debugger'])

long form:

>>> opt(b'--cwd')
('--cwd', False, '', True)
>>> opt(b'--cwd=')
('--cwd', True, '', True)
>>> opt(b'--cwd=foo')
('--cwd', True, 'foo', True)
>>> opt(b'--debugger')
('--debugger', False, '', False)
>>> opt(b'--debugger=')  # invalid but parsable
('--debugger', True, '', False)

short form:

>>> opt(b'-R')
('-R', False, '', True)
>>> opt(b'-Rfoo')
('-R', True, 'foo', True)
>>> opt(b'-q')
('-q', False, '', False)
>>> opt(b'-qfoo')  # invalid but parsable
('-q', True, 'foo', False)

unknown or invalid:

>>> opt(b'--unknown')
('', False, '', False)
>>> opt(b'-u')
('', False, '', False)
>>> opt(b'-ufoo')
('', False, '', False)
>>> opt(b'--')
('', False, '', False)
>>> opt(b'-')
('', False, '', False)
>>> opt(b'-:')
('', False, '', False)
>>> opt(b'-:foo')
('', False, '', False)
�--�=�NFT�-s-:rr�:)�FrF)�
startswith�	partition�bool�find)�arg�	shortlist�namelist�flag�eq�val�is       �5/usr/lib/python3/dist-packages/mercurial/fancyopts.py�_earlyoptargrs���b�~�~�e����
�
�d�+�
��#����8�x����b��3��-�-����8�d�?�h�&���b��3��,�,�'�"�

����	�	�#��+�c�n�n�U�6K�6K����G�S���W�c��N�N�4���8�$����6���c��C�)=�)=�d�A��E�)J�J�J�!rc���/n/nSnU[U5:a�XnUS:Xa
Xt(+-
nO�[X�U5up�p�U
(dU(aUS-[U5:�aOU	(aU
(a&U(dU(aURU5 US-
nO;OKX�:XaURX�45 US-
nOURX�US-45 US-
nU[U5:aM�URXS5 XV4$)a�	Parse options like getopt, but ignores unknown options and abbreviated
forms

If gnu=False, this stops processing options as soon as a non/unknown-option
argument is encountered. Otherwise, option and non-option arguments may be
intermixed, and unknown-option arguments are taken as non-option.

If keepsep=True, '--' won't be removed from the list of arguments left.
This is useful for stripping early options from a full command arguments.

>>> def get(args, gnu=False, keepsep=False):
...     return earlygetopt(args, b'R:q', [b'cwd=', b'debugger'],
...                        gnu=gnu, keepsep=keepsep)

default parsing rules for early options:

>>> get([b'x', b'--cwd', b'foo', b'-Rbar', b'-q', b'y'], gnu=True)
([('--cwd', 'foo'), ('-R', 'bar'), ('-q', '')], ['x', 'y'])
>>> get([b'x', b'--cwd=foo', b'y', b'-R', b'bar', b'--debugger'], gnu=True)
([('--cwd', 'foo'), ('-R', 'bar'), ('--debugger', '')], ['x', 'y'])
>>> get([b'--unknown', b'--cwd=foo', b'--', '--debugger'], gnu=True)
([('--cwd', 'foo')], ['--unknown', '--debugger'])

restricted parsing rules (early options must come first):

>>> get([b'--cwd', b'foo', b'-Rbar', b'x', b'-q', b'y'], gnu=False)
([('--cwd', 'foo'), ('-R', 'bar')], ['x', '-q', 'y'])
>>> get([b'--cwd=foo', b'x', b'y', b'-R', b'bar', b'--debugger'], gnu=False)
([('--cwd', 'foo')], ['x', 'y', '-R', 'bar', '--debugger'])
>>> get([b'--unknown', b'--cwd=foo', b'--', '--debugger'], gnu=False)
([], ['--unknown', '--cwd=foo', '--', '--debugger'])

stripping early options (without loosing '--'):

>>> get([b'x', b'-Rbar', b'--', '--debugger'], gnu=True, keepsep=True)[1]
['x', '--', '--debugger']

last argument:

>>> get([b'--cwd'])
([], ['--cwd'])
>>> get([b'--cwd=foo'])
([('--cwd', 'foo')], [])
>>> get([b'-R'])
([], ['-R'])
>>> get([b'-Rbar'])
([('-R', 'bar')], [])
>>> get([b'-q'])
([('-q', '')], [])
>>> get([b'-q', b'--'])
([('-q', '')], [])

'--' may be a value:

>>> get([b'-R', b'--', b'x'])
([('-R', '--')], ['x'])
>>> get([b'--cwd', b'--', b'x'])
([('--cwd', '--')], ['x'])

value passed to bool options:

>>> get([b'--debugger=foo', b'x'])
([], ['--debugger=foo', 'x'])
>>> get([b'-qfoo', b'x'])
([], ['-qfoo', 'x'])

short option isn't separated with '=':

>>> get([b'-R=bar'])
([('-R', '=bar')], [])

':' may be in shortlist, but shouldn't be taken as an option letter:

>>> get([b'-:', b'y'])
([], ['-:', 'y'])

'-' is a valid non-option argument:

>>> get([b'-', b'y'])
([], ['-', 'y'])
rrrrN)�lenr�append�extend)
�argsrr�gnu�keepsep�
parsedopts�
parsedargs�posrr�hasvalr�takevals
             r�earlygetoptr+^s���d�J��J�
�C�

��D�	�/��i���%�<��;��C��%1�#�(�%K�"��c��'�c�A�g��T��&:���v�g���!�!�#�&��q����
�
����t�k�*��1�H�C�
���t�#��'�]�3�4��1�H�C�/��D�	�/�2���d�4�j�!��!�!rc�f�\rSrSrSr\RrSrSr	Sr
\RS5rSr
g)	�	customopt��z2Manage defaults and mutations for any type of opt.c��Xlg�N��
_defaultvalue)�self�defaultvalues  r�__init__�customopt.__init__�s��)�rc��g)NF��r3s r�
_isboolopt�customopt._isboolopt�s��rc��UR$)z|Returns the default value for this opt.

Subclasses should override this to return a new value if the value type
is mutable.r1r9s r�getdefaultvalue�customopt.getdefaultvalue�s��
�!�!�!rc��g)zrAdds newparam to oldstate and returns the new state.

On failure, abort can be called with a string error message.Nr8�r3�oldstate�newparam�aborts    r�newstate�customopt.newstate�s�rr1N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�abc�ABCMeta�
__metaclass__r5r:r=�abstractmethodrD�__static_attributes__r8rrr-r-�s9��<��K�K�M�*��"�	���H��Hrr-c� �\rSrSrSrSrSrg)�
_simpleopt��c�L�[UR[[S545$r0)�
isinstancer2r�typer9s rr:�_simpleopt._isboolopt�s���$�,�,�t�T�$�Z�.@�A�Arc��U$r0r8r@s    rrD�_simpleopt.newstate�s���rr8N)rFrGrHrIr:rDrOr8rrrQrQ�s
��B�rrQc�.^�\rSrSrU4SjrSrSrU=r$)�_callableopt��c�0>�Xl[TU]	S5 gr0)�
callablefn�superr5)r3r]�	__class__s  �rr5�_callableopt.__init__�s���$��
����rc�$�URU5$r0�r]r@s    rrD�_callableopt.newstate�s�����x�(�(rrb)rFrGrHrIr5rDrO�
__classcell__)r_s@rrZrZ�s����)�)rrZc� �\rSrSrSrSrSrg)�_listopt�c� �URSS$r0r1r9s rr=�_listopt.getdefaultvalue�s���!�!�!�$�$rc�(�URU5 U$r0)r!r@s    rrD�_listopt.newstate�s������!��rr8N)rFrGrHrIr=rDrOr8rrrfrf�s��%�rrfc��\rSrSrSrSrg)�_intoptic�\�[U5$![a U"[S55 gf=f)Nsexpected int)�int�
ValueErrorrr@s    rrD�_intopt.newstates-��	&��x�=� ���	&��!�O�$�%�	&�s�

�+�+r8N)rFrGrHrIrDrOr8rrrmrms��&rrmc��[U[5(aU$[U5(a[U5$[U[5(a[USS5$[
U5[La[U5$[U5$)z<Returns a default opt implementation, given a default value.N)
rTr-�callablerZ�listrfrUrormrQ)�defaults r�_defaultoptrvsj���'�9�%�%���	�'�	�	��G�$�$�	�G�T�	"�	"����
�#�#�	
�g��#�	��w����'�"�"rc�^^�Uc0n/nSn0n0n	0n
UVs1sHo�SiM	 nnUGHQn
[U
5S:XaU
up�nnnOU
up�nnU/nURURU/55 URSS5nX�SU-'UH
nX�SU-'M [	U5X�'X�R5X/'X�R
5(d"U(aUS-
nUVs/sHnUS	-PM
 nnOcU[;aYUHSnURS
5(aUSSnOS
U-nUU;dM,SU-U
;deSU-U
SU-'URU5 MU U(aX~-
nU(dGM@URU5 GMT U(a[R"[US9nO(U(a[RnO[RnU"XU5unnUHiummS
nU
RTS5nU(aUmSnUTnX�nUR
5(aUX/'MIUU4SjnX�R!X/TU5X/'Mk U$s snfs snf)a"
read args, parse options, and store options in state

each option is a tuple of:

  short option or ''
  long option
  default value
  description
  option value label(optional)

option types include:

  boolean or none - option sets variable in state to true
  string - parameter string is stored in state
  list - parameter string is added to a list
  integer - parameter strings is stored as int
  function - call function with parameter
  customopt - subclass of 'customopt'

optaliases is a mapping from a canonical option name to a list of
additional long options. This exists for preserving backward compatibility
of early options. If we want to use it extensively, please consider moving
the functionality to the options table (e.g separate long options by '|'.)

non-option args are returned
Nrr�r�_rrr
sno-�)r$TFc�v>�[R"[S5[R"T5TU4-5e)Ns"invalid value %r for option %s, %s)r�
InputErrorrr�maybebytestr)�s�optrs ��rrC�fancyopts.<locals>.abort~s9����&�&��;�<��,�,�S�1�3��:�;��r)r r"�get�replacervr=r:�nevernegaterr!�	functools�partialr+r�
gnugetoptb�getoptbrD)r#�options�stater$�early�
optaliasesrr�argmap�defmap�	negations�o�alllong�option�short�nameru�comment�dummy�onames�n�insert�parse�opts�boolval�negation�objrCrrs                            @@r�	fancyoptsr�sp���8���
��H��I�
�F�
�F��I�$�%�W���t�W�G�%����v�;�!��39�0�E��'�5�,2�)�E��'�����
�
�j�n�n�T�2�.�/��|�|�D�$�'��#�t�e�|���A� $�5�1�9���"�7�+����l�2�2�4����|�&�&�(�(����
��(.�/��1�a�$�h��F�/�F�
��
$����<�<��'�'��q�r�U�F�#�a�Z�F���(�!�A�I�i�7�7�7�05��	�I�e�f�n�-��O�O�F�+�����I��4��O�O�F�#�O�T
��!�!�+�3�7��	��#�#��� � ���t��1�J�D�$����S����=�=��e�,����C��G��c�{���l���>�>���!�E�K�
�!�,�/�/���S�%�H�E�K�%�*�K��U&��00s�I�I	)FF)FFN)�
__future__rrKr��i18nr�rrr�rr+r-rQrZrfrmrvr�r8rr�<module>r�ss��#�
������<"�~o"�dH�H�2���)�9�)��y��&�i�&�#�mr

Youez - 2016 - github.com/yon3zu
LinuXploit