403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/__pycache__/csv.cpython-315.opt-1.pyc
R
>lqj5Rc�B�Qs]PHs]QHGsGsGsGsGsGsG	s	G
s
GsGsG
s
GsGsGs]QHGs]QHLGs,QNsQQ2sQQ\2s\Q\2Q
Q\2s\Q\2QQ
\2s\Q\2QQ2sQQ	2sQQ2sQsP!)a)
CSV parsing and writing.

This module provides classes that assist in the reading and writing
of Comma Separated Value (CSV) files, and implements the interface
described by PEP 305.  Although many CSV files are simple to parse,
the format is not formally defined by a stable specification and
is subtle enough that parsing lines of a CSV file with something
like line.split(",") is bound to fail.  The module supports three
basic APIs: reading, writing, and registration of dialects.


DIALECT REGISTRATION:

Readers and writers support a dialect argument, which is a convenient
handle on a group of settings.  When the dialect argument is a string,
it identifies one of the dialects previously registered with the module.
If it is a class or instance, the attributes of the argument are used as
the settings for the reader or writer:

    class excel:
        delimiter = ','
        quotechar = '"'
        escapechar = None
        doublequote = True
        skipinitialspace = False
        lineterminator = '\r\n'
        quoting = QUOTE_MINIMAL

SETTINGS:

    * quotechar - specifies a one-character string to use as the
        quoting character.  It defaults to '"'.
    * delimiter - specifies a one-character string to use as the
        field separator.  It defaults to ','.
    * skipinitialspace - specifies how to interpret spaces which
        immediately follow a delimiter.  It defaults to False, which
        means that spaces immediately following a delimiter is part
        of the following field.
    * lineterminator - specifies the character sequence which should
        terminate rows.
    * quoting - controls when quotes should be generated by the writer.
        It can take on any of the following module constants:

        csv.QUOTE_MINIMAL means only when required, for example, when a
            field contains either the quotechar or the delimiter
        csv.QUOTE_ALL means that quotes are always placed around fields.
        csv.QUOTE_NONNUMERIC means that quotes are always placed around
            fields which do not parse as integers or floating-point
            numbers.
        csv.QUOTE_STRINGS means that quotes are always placed around
            fields which are strings.  Note that the Python value None
            is not a string.
        csv.QUOTE_NOTNULL means that quotes are only placed around fields
            that are not the Python value None.
        csv.QUOTE_NONE means that quotes are never placed around fields.
    * escapechar - specifies a one-character string used to escape
        the delimiter when quoting is set to QUOTE_NONE.
    * doublequote - controls the handling of quotes inside fields.  When
        True, two consecutive quotes are interpreted as one during read,
        and when writing, each quote character embedded in the data is
        written as two quotes
)�Error�writer�reader�register_dialect�unregister_dialect�get_dialect�
list_dialects�field_size_limit�
QUOTE_MINIMAL�	QUOTE_ALL�QUOTE_NONNUMERIC�
QUOTE_NONE�
QUOTE_STRINGS�
QUOTE_NOTNULL)�Dialect)�StringIOr�excel�	excel_tab�Sniffer�
DictReader�
DictWriter�unix_dialectc�V`�\sQs]UsnQsPsP
sPsPsPs	Ps
PsPsPs
QsQsQsUsP!)rz�Describe a CSV dialect.

This must be subclassed (see csv.excel).  Valid attributes are:
delimiter, quotechar, escapechar, doublequote, skipinitialspace,
lineterminator, quoting.

c�`�UO[6wcP	UmUO2P!)T)�	__class__r�_valid�	_validate��selfs&�C:\Python315\\Lib\csv.py�__init__�Dialect.__init__hs���>�>�W�$��D�K�����c�p�[U2P![co[[S22PgPo=hh9h�N)�_Dialect�	TypeErrorr�str)r�es& rr�Dialect._validatems.��	*��T�N���	*���A��-�T�)��	*�s��	5�5�0�5)r)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�_namer�	delimiter�	quotechar�
escapechar�doublequote�skipinitialspace�lineterminator�quotingrr�__static_attributes__�__classdictcell__��
__classdict__s@rrrUsI�����
�E�
�F��I��I��J��K����N��G��
*�*r!c�4�\sQs]tsQsQsQsP	sP
sQs	\
sQsP!)rz;Describe the usual properties of Excel-generated CSV files.�,�"�
�)
r)r*r+r,r-r/r0r2r3r4r	r5r6r>r!rrrts$��E��I��I��K����N��Gr!c� �\sQs]~sQsQsQsP!)rzEDescribe the usual properties of Excel-generated TAB-delimited files.�	r>)r)r*r+r,r-r/r6r>r!rrr~s
��O��Ir!z	excel-tabc�4�\sQs]�sQsQsQsP	sP
sQs	\
sQsP!)rz:Describe the usual properties of Unix-generated CSV files.r;r<�
r>)
r)r*r+r,r-r/r0r2r3r4r
r5r6r>r!rrr�s$��D��I��I��K����N��Gr!�unixc�`�\sQs]�snQQksQs\Q2s\OQ2sQs	\
\O2s
QsUsP!)rc��Ud[U2UIc[U2oV mV0mV@m[V,UN3-U@UmVPm]UmP!r#)�iter�list�_fieldnames�restkey�restvalr�dialect�line_num)r�f�
fieldnamesrIrJrK�args�kwdss&&&&&&*,rr�DictReader.__init__�sP���!�d�:�&6�*�&D��j�)�J�%�������Q�7�$�7�$�7�������
r!c��U!r#r>rs&r�__iter__�DictReader.__iter__�s���r!c���UOe[UO2UmUOOUmUO![cK4h9hr#)rH�nextr�
StopIterationrLrs&rrN�DictReader.fieldnames�sW�����#�
�#'����#4�� ����,�,��
������!�
��
�s�A�	A �A �A c��VmP!r#)rH)r�values&&rrNrX�s�� �r!c���UO]6Xc
UO[UO2oUOOUmU,6Xc[UO2oJ[	[UOU22o[
UO2o[
U2oV46cVPV O$U!V46�c&UOUPFDoUOV%$J	U!)�)	rLrNrVr�dict�zip�lenrIrJ)r�row�d�lf�lr�keys&     r�__next__�DictReader.__next__�s����=�=�A���O�O��4�;�;������,�,��
�
�R�i��t�{�{�#�C���T�_�_�c�*�+��
����
!��
��X��
�7�!�#�h�A�l�l�O����W����r�s�+�������,��r!)rHrKrLrrIrJ)NNNr)r)r*r+r,rrS�propertyrN�setterre�classmethod�types�GenericAlias�__class_getitem__r6r7r8s@rrr�sU����	��� �� ����!��!��,$�E�$6�$6�7�r!c�h`�\sQs]�snQQksQsQsQsQs\	\
O2sQs
UsP!)rc���Ud[U2UIc[U2oV mV0mUO	2oUQ7c[QU*2gV@m[V,UN3-U@UmP!)Nz-extrasaction (%s) must be 'raise' or 'ignore')�raise�ignore)rFrGrNrJ�lower�
ValueError�extrasactionr)rrMrNrJrsrKrOrPs&&&&&&*,rr�DictWriter.__init__�ss���!�d�:�&6�*�&D��j�)�J�$����#�)�)�+���2�2��L�+�,�-�
-�(���Q�7�$�7�$�7��r!c�x�[[UOUO22oUOU2!r#)r]r^rN�writerow)r�headers& r�writeheader�DictWriter.writeheader�s*���c�$�/�/�4�?�?�;�<���}�}�V�$�$r!c�(``�ROQ6XceRO2RO*
oU%c<[QQO	STt,tFDo[U2MJ	to2*2gUU1QkRO2!ttoh)roz(dict contains fields not in fieldnames: z, c3�h:�SF �D"oROURO2w�	J$	P!3hr#)�getrJ)�.0rd�rowdictrs& ��r�	<genexpr>�+DictWriter._dict_to_list.<locals>.<genexpr>�s"��/���/�3����C����.�.�/�s�*2)rs�keysrNrr�join�repr)rr~�wrong_fields�xsff  r�
_dict_to_list�DictWriter._dict_to_list�st�������'�"�<�<�>�D�O�O�;�L�� �!K�#'�9�9�|�-L�|�!�d�1�g�|�-L�#M�"N�O�O�J�$�/�/�J�J��.Ms�Bc�X�UOOUOU22!r#)rrvr�)rr~s&&rrv�DictWriter.writerow�s"���{�{�#�#�D�$6�$6�w�$?�@�@r!c�b�UOO[UOU22!r#)r�	writerows�mapr�)r�rowdictss&&rr��DictWriter.writerows�s$���{�{�$�$�S��);�);�X�%F�G�Gr!)rsrNrJr)�ror)r)r*r+r,rrxr�rvr�rirjrkrlr6r7r8s@rrr�s4����8�%�K�A�H�$�E�$6�$6�7�r!c�H`�\sQs]�snQsQsQQksQsQsQs	Qs
UsP!)	rzY
"Sniffs" the format of a CSV file (i.e. delimiter, quotechar)
Returns a Dialect object.
c��,QNUmP!)r;)r;r@�;� �:��	preferredrs&rr�Sniffer.__init__�s	��3��r!c�6�UOQQ2OQQ2oUOV2vq4qVU%fUOUU2vqVU%f[Q2gQQ[2oVGmVWmS9%fQUmVgmU!)z�
Returns a dialect (or None) corresponding to the sample

If several delimiters fit the sample equally well, the
delimiters listed in the preferred attribute are preferred, in
that order, no matter how many times each of them occurs.
r=rB�
zCould not determine delimiterc�$�\sQsQsQsQs\sQsP!)�Sniffer.sniff.<locals>.dialect��sniffedr=r>)	r)r*r+r,r.r4r	r5r6r>r!rrKr�s���E�#�N�#�Gr!rKr<)	�replace�_guess_quote_and_delimiter�_guess_delimiterrrr2r/r0r3)r�sample�
delimitersr0r2r/r3rKs&&&     r�sniff�
Sniffer.sniff�s��������-�5�5�d�D�A���2�2�6�F�	<�	�	��*.�*?�*?��@J�+L�'�I���7�8�8�	$�g�	$�*��%��%�,�,����#3� ��r!c
�`�]PHoQo,oQFDRoUOVd*UOUO*2oUO	U2oU%fJQL	U%fQ!-o-o	]o
WO
oSFD�oUQ*]*
o
V�*oU%cUO
U]2]*V�$UQ*]*
o
V�*oU%c&UdV�7cU	O
U]2]*V�$UQ*]*
o
V�*%fJ�U
]*
o
J�	[V�OQ5oU	%c-[V�OQ5oU	U*U
6HoUQ6XcPoLPo]oP
oU%c�SOQQUOU2QSQUQ6wcQ	LP-*UO2oU]*n[9PIc.U1Q
kUOU22D%fJP	L"	P
LU1Q
kUOU222oUUUU1![cCJ�h9h[cCJ�h9h)
aG
Looks for text enclosed between two identical quotes
(the probable quotechar) which are preceded and followed
by the same character (the probable delimiter).
For example:
                 ,'some text',
The quote with the most wins, same with the delimiter.
If there is no quotechar the delimiter can't be determined
this way.
z#(?:(?P=quote){2}|(?!(?P=quote)).)*+�quote�delim�space�rdrBzg(?:(?<=%(delim)s)|^)%(space)s%(quote)s((?:%(quote)s%(quote)s|[^%(quote)s]++)*+)%(quote)s(?:%(delim)s|$)r�z *+c3�H:�SF �DoRU]*7w�	J	P!3h��r>)r}�m�
dquotechars& �rr�5Sniffer._guess_quote_and_delimiter.<locals>.<genexpr>cs��'?���'?�!�)�A�a�D�0�'?�s�")zH(?P<delim>[^\w\n"\'])(?P<space> ?)(?P<quote>["\'])%s(?P=quote)(?P=delim)zF(?:^|\n)(?P<quote>["\'])%s(?P=quote)(?P<delim>[^\w\n"\'])(?P<space> ?)zF(?P<delim>[^\w\n"\'])(?P<space> ?)(?P<quote>["\'])%s(?P=quote)(?:$|\n)z,(?:^|\n)(?P<quote>["\'])%s(?P=quote)(?:$|\n))r�FNr\)�re�compile�DOTALL�	MULTILINE�findall�
groupindexr|�KeyError�max�escape�any�finditer)r�datar�r��body�matches�restr�regexp�quotes�delims�spacesr�r��nrdr0r�r3r2�	dq_regexpr�s&&&                 @rr��"Sniffer._guess_quote_and_delimitersF���	�
6����G�E��Z�Z���b�i�i�"�,�,�.F�G�F��n�n�T�*�G��w��G��'�'��������&�&�
��A��7�#�a�'�A��$�C��$�j�j��a�0�1�4���
��w�'�!�+���d���
�*�c�.?�$�j�j��a�0�1�4���
��w�'�!�+���t�t��!���#�&��J�J�/�	����J�J�/�E�%�e�}��6����}�����E� ��
����
�
�0���	�	�%� 0�'�9���#���2�?�?��L�L�"�I�#�Q��J��#�A�'0�'9�'9�$�'?�A�#�#�#�A�'0�'9�'9�$�'?�A�A�K��;��/?�@�@��Q�
��
���
��
�s0�H4�I�4	I�>I�I�	I�I�Ic�8�]QHGoGo[[	PUOQ222o[
]
[U22o]o]oUU2o-o	-o
]Sq�U[U26Cc�U]*
oVUFD_o
U]*
oUU
2O2FD8vq�UO2%fJV�*U99*]*
tt$J:	Ja	UO2FD�voo[UO22oU[UO22*
oU%cUO]U12[U2]6XcU]*]*]6XcJ�[U2]6�c`[UQQ5V�$UOV�*2V�*]*V�*]*[QU22*
1V�$J�U]*V�$J�	U	O2o[[
VV*[U222oQoQo[U
2]6XciUU6�cbSFDOvooU]*]6�fJU]*]6�fJ&U]*U*U6�fJ=Ud
UU7fJJUU
U$JQ	UQ*oJx[U
2]6Xc][U
O!22]*oU]*O#U2U]*O#Q	U*26HoUU1!SoV�*
oCJ�U
%fQ
![U
2]6�ciUO$FDWoUU
O!27fJU]*O#U2U]*O#Q	U*26HoUU1t!	U
O2TTt,tFD
vooUU1MJ	oooUO'2UP*]*oU]*O#U2U]*O#Q	U*26HoUU1!ttooh)a=
The delimiter /should/ occur the same number of times on
each row. However, due to malformed data, it may not. We don't want
an all or nothing approach, so we allow for small variations in this
number.
  1) build a table of the frequency of each character on every line.
  2) build a table of frequencies of this frequency (meta-frequency?),
     e.g.  'x occurred 5 times in 10 rows, 6 times in 1000 rows,
     7 times in 2 rows'
  3) use the mode of the meta-frequency to determine the /expected/
     frequency for that character
  4) find out how often the character actually meets that goal
  5) the character that best meets its goal is the delimiter
For performance reasons, the data is evaluated in chunks, so it can
try and evaluate the smallest portion of the data possible, evaluating
additional chunks as necessary.
)�Counter�defaultdictrBc��U]*!r�r>)r�s&r�<lambda>�*Sniffer._guess_delimiter.<locals>.<lambda>�s��1�Q�4r!r�c3�>�SF �Dp]*w�	J	P!3hr�r>)r}�items& rr�+Sniffer._guess_delimiter.<locals>.<genexpr>�s��U���U�T�a���U�s�g�?g�������?g{�G�z�?z%c )r�r\)�collectionsr�r�rG�filter�split�minr_�items�isascii�sum�values�appendr��remove�floatr��countr��sort)rr�r�r�r��chunkLength�	iteration�	num_lines�char_frequency�modesr��start�end�line�charr��countsr��missed_lines�modeList�total�consistency�	threshold�k�vr�r3ras&&&                         rr��Sniffer._guess_delimiteriso��$	5��F�4����D�!1�2�3���"�c�$�i�(���	��	�$�W�-��������s��c�$�i����N�I��3����Q��	�#*�4�=�#6�#6�#8�K�D��|�|�~�~�&�,�U�3�q�8�3�$9�(�!/� 4� 4� 6���f��V�\�\�^�,��(�3�v�}�}��+?�?����L�L�!�\�!2�3��u�:��?�u�Q�x��{�a�'7���u�:��>�"%�e��"@�E�K��L�L���-�#(�;�q�>�5�;�q�>�%(�(C�U�(C�%C�4D�#E�E�K�#(��(�E�K�#!7�(�{�{�}�H��#�k�5�s�4�y�A�B�E��K��I��f�+��"�{�i�'?�$�D�A�q���t�a�x�A�a�D�1�H��q�T�%�Z�K�7�'�/�1�
�?�()�F�1�I�	%�
�t�#���6�{�a���V�[�[�]�+�A�.��$(��G�M�M�%�$8�$(��G�M�M�%�%�-�$@�%A� ��/�0�0��E���C���N��v�;��?��^�^������
�%�(,�Q��
�
�a�(8�(,�Q��
�
�e�a�i�(@�)A�$��/�0�0�	$�%+�L�L�N�3�N�5�A�a�!�A��N��3�
�
�
���b�	�!��� ��G�M�M�%�0� ��G�M�M�%�%�-�8�9���'�(�(��
4s�%Pc	�B�[[U2UOU22o[U2o[	U2o-o[U2FDoPVV$J		]oSFDoU]6�cLvU]*
o[	U2U6wcJ([
UO22FD9o	[o
U
V�*2V�U	*6wfJ'VY*eV�U	$J7VYJ;	J�	]oUO2FD_vq�[U[2%c-[	V9*2U6wcU]*
oJ<U]*oJGUV9*2U]*oJa	U]6�![[1c[	X�*2o
K�h9h[[1cS]*
oJ�h9hr#)rrr�rVr_�rangerGr��complexrr�
OverflowErrorr��
isinstance�intr%)
rr��rdrrw�columns�columnTypes�i�checkedr`�col�thisType�	hasHeader�colTypes
&&           r�
has_header�Sniffer.has_header�sx���X�f�%�t�z�z�&�'9�:���c����f�+�����w��A�$�������C���|���q�L�G��3�x�7�"���K�,�,�.�/��"��-��S�X�&�
�3�/�/�"�'�/�+3�C�(�(�,�0��6�	�'�-�-�/�L�C��'�3�'�'��v�{�#�w�.���N�I���N�I�#��F�K�(���N�I�0��1�}���;#�M�2�-�"�3�8�}�H�-��0#�I�.�#���N�I�#�s0�&E�8F�E=�(E=�<E=�F�
F�Fr�r#)r)r*r+r,r-rr�r�r�r�r6r7r8s@rrr�s.�����4�
 �FRA�jf)�R=�=r!c�d�UQ6Xc]QHGoUQQQ5Q![Q[8QU802g)�__version__)�_deprecated)r�z1.0zmodule z has no attribute )��)�warningsr�AttributeErrorr))�namers& r�__getattr__rs3���}��(��M�'�2��
�7�8�,�.@���I�
J�Jr!)r	r
rrr
rrrrrrrrrrrrrrrr)r-rj�_csvrrrrrrrrr	r
rrr
rrr$�ior�__all__rrrrrrrr>r!r�<module>rs���>�@
�.�.�.�.�
%����*�*�>�G����%� ������i�(��7�����&�38�38�l 8� 8�Fh�h�V	Kr!

Youez - 2016 - github.com/yon3zu
LinuXploit