__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x6�g|���2�%SrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	rSSK
r
SSKrSSKrSSK
r
SSKrSSKrSSKrSSKrSSKJrJrJr SSKJr SrSrSr"SS	\5r"S
S\5r"SS
\5rS\\S\\4Sjr S\S\4Sjr!S\\S\S\\4Sjr"Sr#S\\S\S\\4Sjr$S\\S\%\&\\\'44Sjr(\RR"SS55r*"SS5r+\\*-\+-\&-\%-r,\\-S'"SS\R\5r/g) z(Store, load, and handle problem reports.�N)�	Generator�Iterable�Iterator)�	TypeAliasis�s(�/�c�8^�\rSrSrSrS\S\4U4SjjrSrU=r	$)�MalformedProblemReport�(z�Raised when a problem report violates the crash report format.

This exception might be raised when the keys of the report are not ASCII.
�message�argsc�0>�[TU]"SUS3/UQ76 g)NzMalformed problem report: z$. Is this a proper .crash text file?)�super�__init__)�selfr
r�	__class__s   ��0/usr/lib/python3/dist-packages/problem_report.pyr�MalformedProblemReport.__init__.s+���
���(��	�22�
3�	
��	
��)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__�str�objectr�__static_attributes__�
__classcell__�rs@rrr(s ����

��
�F�
�
rrc��\rSrSrSrSrg)�_SizeLimitExceeded�6z>Raised internally to signal a value that is too big to encode.rN)rrrrrrrrrr r 6s��Hrr c�X�\rSrSrSrS\\SS4SjrS\\4SjrS\\4Sjr	S	r
g)
�_EntryParser�:z�Iterator over entries in RFC822 formatted files.

This iterator reads ahead one line to determine the boundaries between
the entries. Each returned entry is a line-based iterator.
�iterator�returnNc�,�XlSUlSUlg)NT)r%�	next_line�
entry_read)rr%s  rr�_EntryParser.__init__As�� �
�'+�����rc#��# �UR(deURv� SUlURH%nURS5(aUv� MXl O SUlg7f)z$Iterate over all lines of one entry.N� T)r(r%�
startswithr))r�lines  r�entry_iterator�_EntryParser.entry_iteratorFsU����~�~��~��n�n������M�M�D����t�$�$��
�!%���"����s�A&A(c���UR(dUR5HnM UR(d[UR5UlSUlUR5$)NF)r)r/r(�nextr%)r�_s  r�__next__�_EntryParser.__next__SsL������(�(�*���+��~�~�!�$�-�-�0�D�N�����"�"�$�$r)r)r%r()rrrrrr�bytesrr/r4rrrrr#r#:s>�����%���T��
�����%�(�5�/�%rr#�entryr&c#�# �UHn[R"U5v� M g![Ran[	[U55SeSnAff=f7f�N)�base64�	b64decode�binascii�Errorrr)r7r.�errors   r�_base64_decoderr?]sK�����	?��"�"�4�(�(����~�~�	?�(��U��4�$�>��	?�s$�A�&�A�A�A�A�Ar.c��USnSnUS-(a
X US--
nUS-(aXS:waUS-
nXS:waMUS-
nUS-(aXS:waUS-
nXS:waMUS-
nUS-(aUS-
nXS	$)
z0Strip gzip header from line and return the rest.��
���r��Nr)r.�flags�offsets   r�_strip_gzip_headerrJes�����G�E�
�F��q�y��v�,��"�"���q�y��l�a���a�K�F��l�a���!����r�z��l�a���a�K�F��l�a���!����q�y��!�����=�r�
first_linec#�# �UR5nUv� [U5nUHUnUS:�aSv� URS5(aUSSv� U[U5S-
-
nM=USSv� U[U5S-
-
nMW g7f)Nr�
rD���rG)�strip�len�endswith)r7rKr.�lengths    r�
_text_decoderrSys��������D�
�J�
��Y�F����A�:��K��=�=�����q��*���c�$�i�!�m�#�F��q�r�(�N��c�$�i�!�m�#�F��s�A<A>c�p�SSKnUR5$![an[SUS35SeSnAff=f)Nrz$Failed to import zstandard library: z#. Please install python3-zstandard.)�	zstandard�ImportError�RuntimeError�ZstdDecompressor)rUr>s  r�_get_zstandard_decompressorrY�sP�����%�%�'�'�����2�5�'�:1�
2�
��	���s��
5�0�5�first_blockc#�# �[5R5nURU5v� UHnURU5v� M g7fr9)rY�
decompressobj�
decompress)r7rZ�decompressor�blocks    r�_zstandard_decoderr`�sB���.�0�>�>�@�L�
�
!�
!�+�
.�.����%�%�e�,�,��s�A	Ac�v�[U5nURSS5up#UR	S5nUR5S	:HnU(a[U5nO[X5nXGU4$![a [SUR	SS9<S35Sef=f![
an[[
U55SeSnAff=f)
z�Parse the given entry and return key and value.

Return the key and a line iterator over the value. Also return a
boolean if the entry is base64 encoded (i.e. is a binary value).
�:rDzLine �backslashreplace)�errorsz? does not contain a colon for separating the key from the valueN�ASCIIsbase64)
r2�split�
ValueErrorr�decode�UnicodeDecodeErrorrrOr?rS)r7rK�key_in_bytes�first_line_value�keyr>�base64_encoded�value_iterators        r�_parse_entryro�s����e��J��+5�+;�+;�D�!�+D�(��;��!�!�'�*��&�+�+�-��:�N��(��/��&�u�?����.�.��%��$��J�%�%�-?�%�@�C�&�
'�
��		����;�$�S��Z�0�d�:��;�s"�A(�B�()B�
B8�B3�3B8c�^�\rSrSr%Sr\\S'S\SS4SjrSrS\	\
4SjrS\4S	jr
S
rg)�CompressedFile�z�Represents a ProblemReport value which points to a compressed file.

The file is expected to be compressed with gzip or zstandard.
�filenamer&Nc�F�Xl[URS5Ulg)N�rb)rs�open�_compressed_file)rrss  rr�CompressedFile.__init__�s�� �
� $�T�]�]�D� 9��rc�\�[US5(aURR5 gg)Nrw)�hasattrrw�close�rs r�__del__�CompressedFile.__del__�s'���4�+�,�,��!�!�'�'�)�-rc#�^# �URRS5nU(dgUv� M)7f)z?Iterate over the compressed content of the file in 1 MB chunks.�N)rw�read)rr_s  r�iter_compressed�CompressedFile.iter_compressed�s.�����)�)�.�.�w�7�E����K�	�s�+-c�^�[R"UR[RSS9$)z?Check if the compressed file is readable by the effective user.T)�
effective_ids)�os�accessrs�R_OKr|s r�is_readable�CompressedFile.is_readable�s���y�y�������t�D�Dr)rwrs)rrrrrr�__annotations__rr}rr6r��boolr�rrrrrqrq�sD���
�M�:��:��:�
*���%���E�T�Errqc	��\rSrSrSrSS\S-S\S-S\S-SS4SjjrS\SS4S	jrS\	4S
jr
S\	4Sjr\S\
\S\
\4S
j5rS\4SjrS\R"\SS4SjrS\	S\
\4SjrS\	4SjrS\\4SjrSrg)�CompressedValue��z�Represent a ProblemReport value which is gzip or zstandard compressed.

By default, compressed values are in gzip format. Earlier versions of
problem_report used zlib format (without gzip header).
N�value�name�compressed_valuer&c�N�X0lX lU(aURU5 gg)zAInitialize an empty CompressedValue object with an optional name.N)r�r��	set_value)rr�r�r�s    rr�CompressedValue.__init__�s#��!1���	���N�N�5�!�rc���[R"5n[R"URSUSS9nURU5 SSS5 UR
5Ulg!,(df   N$=f)zSet uncompressed value.�wbr��mode�fileobj�mtimeN)�io�BytesIO�gzip�GzipFiler��write�getvaluer�)rr��out�gzs    rr��CompressedValue.set_value�sN���j�j�l��
�]�]�4�9�9�4��A�
F�"��H�H�U�O�G� #������G�
F�s�A'�'
A5c�J�URce[UR5$)z=Return size of the compressed (but not base64 encoded) value.)r�rPr|s r�get_compressed_size�#CompressedValue.get_compressed_size�s%���$�$�0�0�0��4�(�(�)�)rc�4�UR5S-S-S-$)z�Return the size needed on disk to store the compressed value.

The compressed value will be base64 encoded when written to disk
which adds an overhead of 1/3 plus up to 2 bytes of padding. Additional
spaces and newlines are ignored in this calculation.
rGrArC)r�r|s r�get_on_disk_size� CompressedValue.get_on_disk_size�s"���)�)�+�a�/�A�5��:�:rr7c#��# �[US5nUcgUR[5(a[X5Shv�N gUR[5(aB[
R"[
R*5nUR[U55v� O([
R"5nURU5v� UHnURU5v� M UR5v� gN�7f)z5Decode the given compressed value (iterator version).N)r2r-�ZSTANDARD_MAGIC_NUMBERr`�GZIP_HEADER_START�zlibr\�	MAX_WBITSr]rJ�flush)r7r_r^s   r�decode_compressed_stream�(CompressedValue.decode_compressed_streams�����U�D�!���=�����2�3�3�)�%�7�7�7�����-�.�.��-�-�t�~�~�o�>�L��)�)�*<�U�*C�D�D� �-�-�/�L��)�)�%�0�0��E��)�)�%�0�0��� � �"�"�
8�s�9C6�C4�B9C6c�v�URceURR[5(a#[5R	UR5$URR[
5(a [R"UR5$[R"UR5$)zReturn uncompressed value.)r�r-r�rYr]r�r�r�r|s r�	get_value�CompressedValue.get_values����$�$�0�0�0�� � �+�+�,B�C�C�.�0�;�;�D�<Q�<Q�R�R�� � �+�+�,=�>�>��?�?�4�#8�#8�9�9����t�4�4�5�5r�filec��UR(deURR[5(a;[5nUR	[
R"UR5U5 gURR[5(aj[R"[
R"UR5S9nURS5nU(dOURU5 M,SSS5 gUR[R"UR55 g!,(df   N>=f)z5Write uncompressed value into given file-like object.N)r�r�)r�r-r�rY�copy_streamr�r�r�r�r�r�r�r�r])rr�r^r�r_s     rr��CompressedValue.write!s����$�$�$�$�� � �+�+�,B�C�C�6�8�L��$�$�R�Z�Z��0E�0E�%F��M��� � �+�+�,=�>�>����r�z�z�$�2G�2G�'H�I�R���G�G�G�,�E� ���J�J�u�%�	�
�
J�I�	
�
�
�4�?�?�4�#8�#8�9�:�J�I�s�	/D1�1
D?�
chunk_sizec#�# �UR(de[SUR5U5HnURX"U-v� M g7f)Nr)r��ranger�)rr��is   r�_iter_compressed_value�&CompressedValue._iter_compressed_value6sF����$�$�$�$��q�$�2�2�4�j�A�A��'�'��
�N�;�;�B�s�A
Ac�J�UR(deURR[5(a0[[R
"SURSS5S5$SnUR
UR[55HnU[U5-
nM U$)z$Return length of uncompressed value.�<L���Nr)
r�r-r��int�struct�unpackr�r��
CHUNK_SIZErP)rrRr_s   r�__len__�CompressedValue.__len__;s����$�$�$�$�� � �+�+�,=�>�>��v�}�}�T�4�+@�+@���+E�F�q�I�J�J����2�2��'�'�
�3�
�E�
�c�%�j� �F�
��
rc�>�UR5R5$)z.Behaves like splitlines() for a normal string.)r��
splitlinesr|s rr��CompressedValue.splitlinesIs���~�~��*�*�,�,r)r�r�)NNN)rrrrrr6rrr�r�r�r��staticmethodrr�r��typing�IOr�r�r��listr�rrrrr�r��s����#��)-�	
"��t�|�
"��D�j�
"� �$�,�	
"�

�
"�/�u�/��/�*�S�*�
;�#�;��#����#�H�U�O�#��#�*	6�5�	6�;�&�)�)�E�*�;�t�;�*<��<��%��<�
���-�D��K�-rr��ProblemReportValuec	�x^�\rSrSrSrS.S\S\S-SS4U4SjjjrS\\SS4S	jrS/S
\	R\R\
-S\\RS-S
\\S-SS4SjjrS
\	R\R\
-S\\\-S\SS4SjrS\\4SjrS\S-4SjrS\4Sjr\S\
\-S\4Sj5r\S\
\-S\
\-4Sj5rS0S\\S-S\\\\44SjjrS1S
\R\
S\SS4SjjrS\S\\ \\ \44Sjr!S
\R\
S\SS4Sjr"\S
\R\
S\S \\
SS4S!j5r#S\S\$\
4S"jr%S
\R\
S\SS4S#jr&S1S$\S%\SS4S&jjr'S2S'jr(S(\S)\SS4S*jr)S\\4S+jr*\S
\+SS4S,j5r,S-r-U=r.$)3�
ProblemReportiQz1Class to store, load, and handle problem reports.N�problem_type�dater&c�v>�Uc[R"5n[TU]
XS.5 [	5Ulg)z�Initialize a fresh problem report.

problem_type can be 'Crash', 'Packaging', 'KernelCrash' or
'KernelOops'. date is the desired date/time string; if
None (default), the current local time is used.
N)�ProblemType�Date)�time�asctimer
r�set�old_keys)rr�r�rs   �rr�ProblemReport.__init__Ts0����<��<�<�>�D�
����D�E�#&�%��
r�tagsc��UR5nURU5nSR[U55US'g)z/Add tags to the report. Duplicates are dropped.� �TagsN)�get_tags�union�join�sorted)rr��current_tags�new_tagss    r�add_tags�ProblemReport.add_tagsbs4���}�}����%�%�d�+���x�x��x� 0�1��V�rr��binary�
compressed�
key_filterc���URU5 URR5 U(a[U5nOSn[	U5H�n[U5upgnUbXd;aMU(a�USLaSURU'O�US:Xa'[
USRU5S9URU'OnURSR[RU555URU'O-URSRU55URU'UcM�URU5 [U5S:XdM� O [URR55Ul
g)a�Initialize problem report from a file-like object.

If binary is False, binary data is not loaded; the dictionary key is
created, but its value will be an empty string. If it is True, it is
transparently uncompressed and available as dictionary byte array
values. If binary is 'compressed', the compressed value is retained,
and the dictionary value will be a CompressedValue object. This is
useful if the compressed value is still useful (to avoid recompression
if the file needs to be written back).

file needs to be opened in binary mode.

If key_filter is given, only those keys will be loaded.

Files are in RFC822 format, but with case sensitive keys.
NFr�r)r�r�r)�_assert_bin_mode�data�clearr�r#ror�r��_try_unicoder��removerP�keysr�)	rr�r�r��remaining_keysr7rlr%rms	         r�load�ProblemReport.loadhs-��,	
���d�#��	�	����� ��_�N�!�N�!�$�'�E�,8��,?�)�C�>��)�c�.G����U�?�%)�D�I�I�c�N��|�+�%4� �3�8�8�H�3E�&�D�I�I�c�N�&*�%6�%6�����!I�!I�(�!S�T�&�D�I�I�c�N�
"&�!2�!2�3�8�8�H�3E�!F��	�	�#���)��%�%�c�*��~�&�!�+��/(�2�D�I�I�N�N�,�-��
r�bin_keys�	directoryc��URU5 [U[5(aU/n[U5n0n[	U5H�n[U5upxn	Xt;aMX�U'UR
U5 U	(dM6[RRX75n
[U
S5n[RU5HnURU5 M SSS5 M� U(a[SSRU5S35eSUR!5;a9UR#5VVs/sHup�USLdMUPM nnn[%US35eg!,(df   GM=f![an
[SU
35U
eSn
A
ff=fs snnf)	z�Extract only given binary elements from the problem report.

Binary elements like kernel crash dumps can be very big. This method
extracts directly files without loading the report into memory.
r�Nzunable to open zCannot find z, z
 in reportFz has no binary content)r��
isinstancerr�r#ror�r��pathr�rvr�r�r��OSError�KeyError�values�itemsrg)rr�r�r��missing_keys�	b64_blockr7rlr%rm�key_pathr�r_r>�item�elementr�s                 r�extract_keys�ProblemReport.extract_keys�sk��	
���d�#��h��$�$� �z�H��H�~���	�!�$�'�E�,8��,?�)�C�>��&��+�c�N�����$�!���w�w�|�|�I�3�H�
G��(�D�)�S�!0�!I�!I�(�!S���	�	�%�(�"T�*�)�(�$��\�$�)�)�L�*A�)B�*�M�N�N��I�$�$�&�&�/8���/@�U�/@�m�d�G�u�DT�T�/@�E�U���w�&<�=�>�>�'�*�)���
G����z�:�;��F��
G��VsB�E$�$.E�E$�*F�9F�
E!	�E$�!E$�$
F�.E=�=Fc�\�SU;a
[5$[USRS55$)zReturn the set of tags.r�r�)r�rfr|s rr��ProblemReport.get_tags�s+������5�L��4��<�%�%�c�*�+�+rc�@�[R"[R5n[R"[RS5 [	[
R"[
R"US555[R"[RU5 $![a( [R"[RU5 gf=f![R"[RU5 f=f![Ra gf=f)zXGet timestamp (seconds since epoch) from Date field.

Return None if it is not present.
�Cr�N)
�locale�	getlocale�LC_TIME�	setlocaler�r��mktime�strptimer�r=)r�
orig_ctimes  r�
get_timestamp�ProblemReport.get_timestamp�s����%�%�f�n�n�5�
�		�
=�� � �����5��4�;�;�t�}�}�T�&�\�'B�C�D�� � �����<���
��� � �����<�
��� � �����<���|�|�	��	�sB�AB'�%D�'
C�1C�2%D�C�C�'D�D�D�Dc�(�SUR5;$)znCheck if the report has any keys which were not loaded.

This could happen when using binary=False in load().
N)r�r|s r�has_removed_fields� ProblemReport.has_removed_fields�s��
�t�{�{�}�$�$r�stringc��[U[5(a1UH+nUS:dM[U5R5(aM+ g g)z0Check if the given strings contains binary data.� TF)r�r6�chr�isspace)r�cs  r�	is_binary�ProblemReport.is_binary�s:���f�e�$�$����r�6�#�a�&�.�.�"2�"2���rr�c��[U[5(a(URU5(dURS5$U$![a Us$f=f)z*Try to convert bytearray value to Unicode.�UTF-8)r�r6rrhri)�clsr�s  rr��ProblemReport._try_unicode�sP���e�U�#�#�C�M�M�%�,@�,@�
��|�|�G�,�,����&�
���
�s�A�A�Ar�c#�n# �U(a/[[UR55[U5-5nO[UR55nSH-nX!;dM
URU5 UR	SU5 M/ UH)nURS5(aMXnUcM$X#4v� M+ g7f)aOIterate over all non-internal items sorted.

The most interesting fields will be returned first. The remaining
items will be returned in alphabetical order. Keys starting with
an underscore are considered internal and are skipped. Also values
that are None will be skipped.

If keys is provided, only those keys will be iterated over.
)�	Traceback�
StackTrace�Titler��Package�ExecutablePathrr3N)r�r�r�r��insertr-)rr�rlr�s    r�sorted_items�ProblemReport.sorted_items�s������#�d�i�i�k�*�S��Y�6�7�D��$�)�)�+�&�D�
�C��{����C� ����A�s�#�
��C��~�~�c�"�"���I�E��}���*���s
�AB5�AB5�only_newc��URU5 URU5up4UHnURX5 M UHnURX5 M g)aKWrite information into the given file-like object.

If only_new is True, only keys which have been added since the last
load() are written (i. e. those returned by new_keys()).

If a value is a string, it is written directly. Otherwise it must be a
tuple of the form (file, encode=True, limit=None, fail_on_empty=False).
The first argument can be a file name or a file-like object,
which will be read and its content will become the value of this key.
'encode' specifies whether the contents will be
gzip compressed and base64-encoded (this defaults to True). If limit is
set to a positive integer, the file is not attached if it's larger
than the given limit, and the entire key will be removed. If
fail_on_empty is True, reading zero bytes will cause an OSError.

file needs to be opened in binary mode.

Files are written in RFC822 format.
N)r��_get_sorted_keys�_write_ascii_item�)_write_binary_item_compressed_and_encoded)rr�r+�asckeys�binkeys�ks      rr��ProblemReport.write!sW��(	
���d�#��0�0��:����A��"�"�4�+���A��:�:�4�C�rc��/n/nURR5H�nU(aX@R;aMURUn[U[[
-5(a<UR
U5(aURU5 MoURU5 M�[U[[45(d,[U5S:�aUS(dURU5 M�URU5 M� UR5 SU;a#URS5 URSS5 UR5 X#4$)ziSort keys into ASCII non-ASCII/binary attachment ones, so that
the base64 ones appear last in the report
rGrDr�r)r�r�r�r�r6rr�appendrqr�rP�sortr�r()rr+r0r1r2�vs      rr-�ProblemReport._get_sorted_keys?s������������!�A��A���.���	�	�!��A��!�U�S�[�)�)��>�>�!�$�$��N�N�1�%��N�N�1�%��q�>�?�"C�D�D���F�a�K��!�����q�!����q�!�#"�&	�����G�#��N�N�=�)��N�N�1�m�,�������rrlc�x�URUn[U[[-5(d�[	U5S:�aUSbUSnOSn[	U5S:�=(a USn[USS5(aUSR
5nO([USS5nUR
5nSSS5 U(a[	U5S:Xa[SU-5eUb[	U5U:�aURU	g[U[5(aURS5nURURS	55 S
U;a3URS5 URURS
S55 O"URS
5 URU5 URS
5 g!,(df   GN=f)NrArGrCrr�ru�did not get any data for field rrerMs:
 �
 s: )r�r�r6rrPrzr�rvr��encoder��replace)rr�rlr7�limit�
fail_on_empty�fs       rr.�ProblemReport._write_ascii_item_s^���I�I�c�N���!�U�S�[�)�)��1�v��{�q��t�/��!�������F�a�K�0�A�a�D�M��q��t�V�$�$��a�D�I�I�K���!�A�$��%������A�&���Q��1���?�#�E�F�F�� �S��V�e�^��I�I�c�N���a��������!�A��
�
�3�:�:�g�&�'��A�:��J�J�w���J�J�q�y�y���/�0��J�J�u���J�J�q�M��
�
�5��-&�%�s�F*�*
F9�chunksc�n�UR5nURUS3RS55 UH9nURS5 UR[R"U55 M; URS5 g![
a$ UR
U5 URU5 ef=f)zCWrite out binary chunks as a base64-encoded RFC822 multiline field.z: base64rer;rMN)�tellr�r<r:�	b64encode�	Exception�seek�truncate)r�rlrB�reset_position�chunks     r�!_write_binary_item_base64_encoded�/ProblemReport._write_binary_item_base64_encoded�s���
�����		��J�J�#��h�'�.�.�w�7�8����
�
�6�"��
�
�6�+�+�E�2�3� �
�J�J�u����	��I�I�n�%��M�M�.�)��	�s�A3B�.B4c	#�# �URUn[U[5(aUR5Shv�N g[U[5(aUR
ceUR
v� g[S-URS5-S-nUv� [R"S5n[R"S[R[R*[RS5nSn[U[5(ae[U[5(aBU[!U5-
n[R"X$5nUR#U5nU(aUv� GO"Sn[!U5S:�aUS	bUS	n[%USS
5(aUSn	O['USS5n	U	R)S5n
U[!U
5-
n[R"X�5nUbXh:�aURU	[+S
5eU
(aUR#U
5nU(aUv� OOM|[%USS
5(dU	R-5 [!U5S:�a-US(a#US:Xa[/SUS[US535eUR15n
U
[2R4"SUS-5-
n
U
[2R4"SUS-5-
n
U
v� gGN�7f)z�Generator taking the value out of self.data and outputing it
in compressed chunks of binary data.

Throws a _SizeLimitExceeded exception if the value exceeds its specified
size limit, in which case it will also remove the value from self.data entirely.
Ns�r�r�rrArGr�rur�z,Binary data bigger than the limit ({limit}b)rCr:z from r�l��)r�r�rqr�r�r�r�r<r��crc32�compressobj�DEFLATEDr��
DEF_MEM_LEVELrr6rP�compressrzrvr�r r{r�r�r��pack)rrlr��gzip_header�crc�bc�size�outblockr>r@r_s           r�_generate_compressed_chunks�)ProblemReport._generate_compressed_chunks�s�����	�	�#����e�^�,�,��,�,�.�.�.���e�_�-�-��)�)�5�5�5��(�(�(���-�
.��j�j��!�
"��
�	����j�j��o��
�
�
�a���������AS�AS�UV�
W�����e�S�)�)�)�)��e�U�#�#��C��J��D��*�*�U�(�C��{�{�5�)�H������E��5�z�Q��5��8�#7��a����u�Q�x��(�(��!�H����q��4�(������w�����E�
�"���j�j��,���$��|� �I�I�c�N�0�J����!�{�{�5�1�H��&����� �5��8�V�,�,����	��5�z�Q��5��8��1�9�!�9�#��f�S��q��]�O�T���
���
��
����T�3��#3�4�4��
����T�4�*�#4�5�5����G
/�s�8K�K�JKc�h�URXURU55 g![a gf=f)z?Write the binary keys with gzip compression and base64 encodingN)rKr[r )rr�rls   rr/�7ProblemReport._write_binary_item_compressed_and_encoded�s9��	��2�2��4�;�;�C�@�
��"�	��	�s�!$�
1�1�
reportfile�
keep_timesc�$�[R"U5n[US5n[R"US5 UR	U5 SSS5 U(a,[R
"XRUR45 [R"XR5 g!,(df   Nb=f!U(a,[R
"XRUR45 [R"XR5 f=f)z�Add this report's data to an already existing report file.

The file will be temporarily chmod'ed to 000 to prevent frontends
from picking up a hal-updated report file. If keep_times
is True, then the file's atime and mtime restored after updating.
�abrN)	r��statrv�chmodr��utime�st_atime�st_mtime�st_mode)rr_r`�st�reports     r�add_to_existing�ProblemReport.add_to_existing�s����W�W�Z�
 ��	-��j�$�'�6�����Q�'��
�
�6�"�(������k�k�2�;�;�%?�@��H�H�Z���,�
(�'�������k�k�2�;�;�%?�@��H�H�Z���,�s#�B:�)B)�
B:�)
B7�3B:�:ADc�0
�URU5 [URR55nSn/nSU;a#UR	S5 URSS5 U(a9Sn	UH1n
X�;dM
UR	U
5 URX�5 U	S-
n	M3 UGH^nU(aX�;aMURUnSn
[
U[5(aURn
GO6[
U[[-5(d�Sn
[USS5(aUSnO[USS5nURS5(aUR5n
Os[R "5n["R$"US	USS
9nURS5nU(aUR'U5 OOM-SSS5 UR)5n
UR+5 ODUR-U5(a.URS5(aUn
O[X�5Rn
U
(a�[.R0R2R5SS
5nURS5(aUR7SSUS9 OUR7SSUS-S9 UR9U
5 [.R:R=U5 UR?U5 GM-[AU5n[
U[5(aURCSS5n[
U[5(de[AURE55nUS::a&US:Xa URG5nX{S-U-S--
nGM�US::aPUU::aJX{S--
nURS5(dUS-
nX|RI5RKSS5S--
nGM[.R0RLROUSS9nUR7SSUS-S9 UR?U5 GMa [.R0RLROUSS9nUR7SS5 URSU5 [.R0RPRS5nU(a*URU5Hup�UR7X�5 M UHnURWU5 M UR'URY5R[S55 UR'S5 g!,(df   GNZ=f)aWrite MIME/Multipart RFC 2822 formatted data into file.

file must be a file-like object, not a path.  It needs to be opened in
binary mode.

If a value is a string or a CompressedValue, it is written directly.
Otherwise it must be a tuple containing the source file and an optional
boolean value (in that order); the first argument can be a file name or
a file-like object, which will be read and its content will become the
value of this key.  The file will be gzip compressed, unless the key
already ends in .gz.

attach_treshold specifies the maximum number of lines for a value to be
included into the first inline text part. All bigger values (as well as
all non-ASCII ones) will become an attachment, as well as text
values bigger than 1 kB.

Extra MIME preamble headers can be specified, too, as a dictionary.

skip_keys is a set/list specifying keys which are filtered out and not
written to the destination file.

priority_fields is a set/list specifying the order in which keys should
appear in the destination file.
�r�rrDNr�ruz.gzr�r�r��applicationzx-gzipzContent-Disposition�
attachment)rsrr=i�z: �
z:
 z
 )�_charsetz.txt�inlinerM).r�r�r�r�r�r(r�r�r�r6rrzrvrQr�r�r�r�r�r�r�r{r�email�mime�base�MIMEBase�
add_header�set_payload�encoders�
encode_base64r5rPrhr��rstriprOr=�text�MIMEText�	multipart�
MIMEMultipartr��attach�	as_stringr<)rr��attach_treshold�
extra_headers�	skip_keys�priority_fieldsr�r}�attachments�counter�priority_fieldr2r7�attach_valuer@r�r�r_�attrY�lines�msg�as                       r�
write_mime�ProblemReport.write_mimes-��F	
���d�#��d�i�i�n�n�&�'�������D� ��K�K�
�&��K�K��=�)���G�"1��!�)��K�K��/��K�K��8��q�L�G�	#2��A��Q�^���	�	�!��A��L��!�_�-�-� �1�1�� ��5�3�;�/�/�!���1�Q�4��(�(��!��A��Q�q�T�4�(�A��:�:�e�$�$�#$�6�6�8�L��*�*�,�C����q�t�S��J�b�"�$%�F�F�7�O�E�$� "����� %�#�K�$'�<�<�>�L����	�����"�"��:�:�e�$�$�#$�L�#2�1�#8�#I�#I�L���j�j�o�o�.�.�}�h�G���:�:�e�$�$��N�N�#8�,�QR�N�S��N�N�-�|�a�%�i�#������-����,�,�S�1��"�"�3�'��1�v���a��'�'�����)�4�A�!�!�S�)�)�)�)��A�L�L�N�+���4�<�E�Q�J����
�A���H�q�L�4�/�/�D��T�\�e��&>���J�&�D��:�:�d�+�+��T�	���G�G�I�-�-�d�E�:�T�A�A�D� �*�*�/�/�2�2�1�w�2�G�C��N�N�-�|�a�&�j�#�� �&�&�s�+�[�`�j�j�o�o�&�&�t�g�&�>�����,�h�7����1�c�"��j�j�"�"�0�0�2���%�+�+�-������q�$�.��A��J�J�q�M��	
�
�
�3�=�=�?�)�)�'�2�3��
�
�5��KK�J�s�/T�
T	r2r7c�b�[US5(deURSS5RSS5RSS5R5(d[SUS35e[	U[
[45(d�[US5(d�[	U[5(a^[U5S:Xd'[U5S	:�a@[U5S
::a1USS;a([USS5(d#[USS
5(d[SUS35eURRX5$)N�isalnum�.rn�-r3zkey 'zT' contains invalid characters (only numbers, letters, '.', '_', and '-' are allowed)rDrGrC>FTrr�zvalue for key z7 must be a string, CompressedValue, or a file reference)rzr=r�rgr�rqr��tuplerP�	TypeErrorr��__setitem__)rr2r7s   rr��ProblemReport.__setitem__�s���q�)�$�$�$�$��y�y��b�!�)�)�#�r�2�:�:�3��C�K�K�M�M����s�J�K��
�
�q�>�?�;�<�<��q�)�$�$��1�e�$�$���F�a�K��A��!���A��!���!��
�8M��Q�q�T�9�-�-���1��v�1F�1F�� ���$'�(��
�
�y�y�$�$�Q�*�*rc�b�[URR55UR-
$)zyReturn newly added keys.

Return the set of keys which have been added to the report since it
was constructed or loaded.
)r�r�r�r�r|s r�new_keys�ProblemReport.new_keys�s#���4�9�9�>�>�#�$�t�}�}�4�4rc�4�[US5(aS5eg)z0Assert that given file object is in binary mode.�encodingz"file stream must be in binary modeN)rz)r�s rr��ProblemReport._assert_bin_mode�s ���4��,�,�R�.R�R�,�,r)r�)�CrashN)TNr9)F)�NNN)/rrrrrrrrr�r�r�r�r�r6r��Literalr�rr�r�r�rrr�r�classmethodr�rr�r�r)r�r�r-r.rKrr[r/rkr�r�r�rr�rrrs@rr�r�Qs	���;�(�S�(�#��*�(�PT�(�(�2�X�c�]�2�t�2�7;�+/�	6.��m�m�f�i�i��.�.�6.��v�~�~�l�3�3�6.��S�M�D�(�	6.�

�6.�p(?��m�m�f�i�i��.�.�(?��3�-�#�%�(?��	(?�

�(?�T,�#�c�(�,��s�T�z��$%�D�%���%�#�+��$����������������,0�#��S�M�D�(�#�	�%��/�/�0�	1�#�JD�&�)�)�E�*�D�d�D�t�D�< �� �%��S�	�4��9�8L�2M� �@%�f�i�i��&6�%�S�%�T�%�N���i�i����%(��2:�5�/��	
���� N�s�N�y��7G�N�`
��I�I�e�$�
�+.�
�	
�
�-�#�-�4�-�D�-�(����
R�h+�S�+�%7�+�D�+�85�#�c�(�5��S�v�S�$�S��Srr�)0rr:r<�collections�dataclasses�email.encodersrt�email.mime.base�email.mime.multipart�email.mime.textr�r�r
r�r�r�r�r��collections.abcrrrrr�r�r�rgrrWr r#r6r?rJrSrYr`r�rr�ro�	dataclassrqr�r�r��UserDictr�rrr�<module>r�s���.����������	�
�	�
��
��9�9��
�
�#��,��
�Z�
�I��I� %�8� %�F?�8�E�?�?�x���?��U��u��($��%��$�e�$����$�	(�-�h�u�o�-�E�-�h�u�o�-�/����/�E�#�x����2L�,M�/�<
���E�E��E�<s-�s-�l!&�� 6�� H�3� N�QV� V��I�V�n	S�K�(�(�n	Sr

Filemanager

Name Type Size Permission Actions
apport_python_hook.cpython-313.pyc File 9.37 KB 0644
debconf.cpython-313.pyc File 11.02 KB 0644
distro_info.cpython-313.pyc File 30.18 KB 0644
jsonpatch.cpython-313.pyc File 33.95 KB 0644
jsonpointer.cpython-313.pyc File 13.3 KB 0644
language_support_pkgs.cpython-313.pyc File 12.18 KB 0644
monotonic.cpython-313.pyc File 6.88 KB 0644
problem_report.cpython-313.pyc File 42.83 KB 0644
typing_extensions.cpython-313.pyc File 139.31 KB 0644
uno.cpython-313.pyc File 21.22 KB 0644
unohelper.cpython-313.pyc File 15.41 KB 0644
Filemanager