403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/export_pot.cpython-313.pyc
�

p��g�,����SrSSKrSSKrSSKrSSKJr SSKJrJrJ	r	 SSKJ
r SSKJ
r
 SSKJrJr S	rS
rSSjr"SS
5r"SS5rSrSrSrSrSSjrSrSrSSjrg)a�Extract docstrings from Bazaar commands.

This module only handles breezy objects that use strings not directly wrapped
by a gettext() call. To generate a complete translation template file, this
output needs to be combined with that of xgettext or a similar command for
extracting those strings, as is done in the bzr Makefile. Sorting the output
is also left to that stage of the process.
�N�)�commands)�errors�help_topics�option)�plugin)�gettext)�mutter�notec��URSS5RSS5RSS5RSS5RS	S
5nU$)N�\z\\�
z\n�
z\r�	z\t�"z\")�replace)�ss �3/usr/lib/python3/dist-packages/breezy/export_pot.py�_escaper)sL��	�	�	�$���	���u�	�	���u�	�	���u�	�	���e�	��
�H�c���URS5n[U5S:XaS[U5-S-nU$US(dUS	USS-US'SnSUR[	[U55-S-nU$)Nrrr���z\n"
"z""
")�split�lenr�join�map)r�lines�lineterms   r�
_normalizer4s���
�G�G�D�M�E�
�5�z�Q���'�!�*��s�"��
�H��R�y��b�	��b�	�D�(�E�"�I����h�m�m�C���$7�8�8�3�>���Hrc�6�SSKn0n0nURURX55Hkn[XRR5(aUR
X5R'M7[XRR5(dMSUR
XER'Mm X44$)z5Get object to lineno mappings from given source_text.rN)	�ast�walk�parse�
isinstance�ClassDef�lineno�name�Strr)�source_text�filenamer!�
cls_to_lineno�
str_to_lineno�nodes      r�
_parse_sourcer.Csv����M��M�������;�9�:���d�L�L�)�)�'+�{�{�M�)�)�$�
��g�g�
&�
&�
%)�K�K�M�&�&�!�;��'�'rc�>�\rSrSrSrS	Sjr\S5rSrSr	Sr
g)
�_ModuleContext�Wz,Record of the location within a source tree.Nc�B�XlX lUbUuUlUlgg�N)�pathr&�_cls_to_lineno�_str_to_lineno)�selfr4r&�_source_infos    r�__init__�_ModuleContext.__init__Zs'���	����#�7C�4�D���!4�$rc
���[R"U5n[RR	U5nU"U[SR
[R"U5S5UR5S9$)z@Get new context from module object and parse source for linenos.�r)r8)	�inspect�
getsourcefile�osr4�relpathr.r�
findsource�__file__)�cls�module�
sourcepathr@s    r�from_module�_ModuleContext.from_module`s`���*�*�6�2�
��'�'�/�/�*�-����&�����*�*�6�2�1�5�6�����
�	
rc��URURnUR
UR
X RUR45$![[4a [	SXR
5 Us$f=f)z@Get new context with same details but lineno of class in source.z Definition of %r not found in %r)r5�__name__�AttributeError�KeyErrorr
r4�	__class__r6)r7rCr&s   r�
from_class�_ModuleContext.from_classmsr��	��(�(����6�F��~�~��I�I�v� 3� 3�T�5H�5H�I�
�	
����)�	��5�s�I�I�F��K�	�s�A
�
(A8�7A8c���URUnURURX RUR45$![[4a [SUSSUR5 Us$f=f)zAGet new context with same details but lineno of string in source.zString %r not found in %rN�)r6rJrKr
r4rLr5)r7�stringr&s   r�from_string�_ModuleContext.from_stringxsv��	��(�(��0�F��~�~��I�I�v� 3� 3�T�5H�5H�I�
�	
����)�	��.��s���T�Y�Y�G��K�	�s�A�,A2�1A2)r5r6r&r4)rN)rI�
__module__�__qualname__�__firstlineno__�__doc__r9�classmethodrFrMrR�__static_attributes__�rrr0r0Ws)��6�D��

��

�	
�	
rr0c�F�\rSrSrSrS
SjrSSjrSSjrSSjrSr	S	r
g)�_PotExporter�z;Write message details to output stream in .pot file format.c�Z�XlU(aSUlO[5Ul0Ulgr3)�outf�_msgids�set�_module_contexts)r7r_�include_duplicatess   rr9�_PotExporter.__init__�s"���	���D�L��5�D�L� "��rNc�,�URb+X0R;agURRU5 UcSnOSRU5n[SUSSX!5 SRXU[	U5S9nUR
R
U5 g)Nr<z# {}
z!Exporting msg %r at line %d in %rrPz3#: {path}:{lineno}
{comment}msgid {msg}
msgstr ""

)r4r&�comment�msg)r`�add�formatr
rr_�write)r7r4r&rrf�lines      r�poentry�_PotExporter.poentry�s����<�<�#��L�L� ���L�L���Q���?��G��o�o�g�.�G��2�A�c�r�F�F�I�H�O�O��g�:�a�=�P�
��	
�	�	����rc�t�URU5nURURURX#5 gr3)rRrlr4r&)r7�contextrQrfs    r�poentry_in_context�_PotExporter.poentry_in_context�s*���%�%�f�-�����W�\�\�7�>�>�6�Crc��URS5nUb[XE5nUH+nURXU5 X&RS5S--
nM- g)Nz

r�)r�filterrl�count)r7r4r&�msgid�include�
paragraphs�ps       r�poentry_per_paragraph�"_PotExporter.poentry_per_paragraph�sM���[�[��(�
�����4�J��A��L�L��q�)��g�g�d�m�a�'�'�F�rc�8�[R"U5nURURn[R"U5(aURU5nU$![a0 [
R
U5nX0RUR'Ngf=fr3)	r=�	getmodulerbrIrKr0rF�isclassrM)r7�objrDros    r�get_context�_PotExporter.get_context�s����"�"�3�'��	=��+�+�F�O�O�<�G��?�?�3����(�(��-�G�����	=�$�0�0��8�G�5<�!�!�&�/�/�2�	=�s�A�7B�B)rbr`r_)Fr3)rIrTrUrVrWr9rlrprzr�rYrZrrr\r\�s��E�#�
�D�(�	rr\c	��[USS5(agURn[USS5(a#URXRSU<SU35 UR	5HXun pgXT:wa*URU5(aM$SR
XE/5nU(dM?URXSU<SU35 MZ g)N�hiddenF�titlez	title of � �=zhelp of )�getattrr'rpr��
iter_switches�	is_hiddenr)�exporterro�optr�optnamer'�_�helptxts        r�
_write_optionr��s����s�H�e�$�$���h�h�G��s�G�T�"�"��#�#�G�Y�Y�)�G�;�a�PT�v�8V�W�"�0�0�2���a���?��}�}�T�"�"���8�8�W�O�,�D��7��'�'��H�T�H�A�d�V�:T�U�
 3rc���[RRnUR[5n[	U5H#nXn[XR
U5US5 M% g)Nr)r�Option�OPTIONSr��sortedr�rR)r�r�ror'r�s     r�_standard_optionsr��sM���m�m�#�#�G��"�"�6�*�G��w����m���h� 3� 3�D� 9�3��I� rc��SUR5<S3nURH&n[U[5(aM[	XXC5 M( g)Nz
option of z command)r'�
takes_optionsr$�strr�)r�ro�cmdrr�s     r�_command_optionsr��s=��
����
�~�X�.�D�� � ���#�s�#�#��(�S�7�!rc��URUR5nURnURU5n[R
"U5nSnUR
URURXV5 [XU5 g)Nc�4�UR5SS:wagg)Nrz:Usage:T)�
splitlines)rys r�
exclude_usage�*_write_command_help.<locals>.exclude_usage�s��
�<�<�>�!��	�)��*r)
r�rLrWrRr=�cleandocrzr4r&r�)r�r�ro�rawdoc�dcontext�docr�s       r�_write_command_helpr��sj���"�"�3�=�=�1�G�
�[�[�F��"�"�6�*�H�
�
�
�6�
"�C��
�"�"�8�=�=�(�/�/�3�V��X��,rc�b�[R"5HRn[R"US5nUR(aM-UbM2[	[S5U5 [
X5 MT [R"5nUb(X;a#[R"[S5U4-5eUVs1sH>oTUR5R[RS5(dM<UiM@ nn[R"5H�n[R"US5nUR(aM-UbUR!5U:waMFUcUR!5U;aM_[	[S5R#X#R!555 [
X5 M� gs snf)z�Extract docstrings from path.

This respects the Bazaar cmdtable/table convention and will
only extract docstrings from functions mentioned in these tables.
FNz+Exporting messages from builtin command: %szPlugin %s is not loadedrz2Exporting messages from plugin command: {0} in {1})�
_mod_commands�builtin_command_names�get_cmd_objectr�rr	r��_mod_plugin�pluginsr�BzrErrorr4�
startswith�breezy�__path__�plugin_command_names�plugin_nameri)r�r��cmd_name�commandr�r'�core_pluginss       r�_command_helpsr��sg��"�7�7�9���.�.�x��?���>�>���"���W�B�
C�X�N��H�.�:��!�!�#�G���;�#=��o�o�g�&?�@�K�>�Q�R�R� �� ��D�M�$6�$6�$8�$C�$C�F�O�O�TU�DV�$W�����"�6�6�8���.�.�x��?���>�>���"�w�':�':�'<��'K�
���7�#6�#6�#8��#L�
���H�I�P�P��-�-�/�
�	
�
	�H�.�#9��	s�0;F,�/F,c��UR[5n[Rn[[5H�n[	[U5n[
R"U5(dM0[XB5(dMBXBLaMHUR(aM[[	USS5nU(dMq[[S5U5 URX5 M� g)z&Extract fmt string from breezy.errors.�_fmtNz Exporting message from error: %s)r�rr��dirr�r=r~�
issubclass�internal_errorrr	rp)r�ro�
base_klassr'�klass�fmts      r�_error_messagesr�s����"�"�6�*�G����J��F������%�����u�%�%���%�,�,����������e�V�T�*���3���;�<�d�C��'�'��5�rc��[RnUR5H�nURU5n[	U[
5(aUR
SU-S-SU5 O/[U5(aUR
SU-S-SU"U55 URU5nUcM�URSU-S-SU5 M� g)Nzdummy/help_topics/z/detail.txtrzen/help_topics/z.txtz/summary.txt)
r�topic_registry�keys�getr$r�rz�callable�get_summaryrl)r�r��keyr��summarys     r�_help_topicsr�&s��� �/�/�N��"�"�$��� � ��%���c�3����*�*�$�s�*�]�:�A�s�
��c�]�]��*�*�!�C�'�&�0�!�S��X�
�!�,�,�S�1�������1�C�7�.�H�!�W�U�%rc��[X5nUc-[U5 [U5 [U5 [	U5 g[X15 gr3)r\r�r�r�r�)r_rrcr�s    r�
export_potr�7s9���D�5�H�
�~��(�#��x� ���!��X���x�(r)z	<unknown>r3)NF)rWr=r?r�r<rr�rrrrr��i18nr	�tracer
rrrr.r0r\r�r�r�r�r�r�r�r�rZrr�<module>r�sx��(��	�
�'�)�)�#���
�
�(�(*
�*
�Z0�0�fV�J�8�
-� )/�X6�(V�")r

Youez - 2016 - github.com/yon3zu
LinuXploit