%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/samba/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/samba/__pycache__/ms_schema_markdown.cpython-312.pyc

�

�I�dX	��d�dZddlZddlZddlZddlmcmZd�Zd�Z	e
dk(r�ddlZdZe
ej�dk(r6edejdzej ��ej"d	�ejd	Ze
ej�d
kDrejd
Ze	ee�yy)z(Generate LDIF from Github documentation.�Nc�v�|jxsddjd�|D��z|jxsdzS)N�c3�2K�|]}t|����y�w)N)�	innertext)�.0�es  �:/usr/lib/python3/dist-packages/samba/ms_schema_markdown.py�	<genexpr>zinnertext.<locals>.<genexpr>s����.�Q�I�a�L�.�s�)�text�join�tail)�tags r	rrs9���H�H�N���G�G�.�#�.�.�/�
�X�X�^����c	���t|�5}tjtjdd|j	��d��}ddd�tjdzdz�}d}	|D]�}|jdk(rV|�|j�tjj|t|�j��}t|d	�}�h|jd
k(r|��z|j�d}��|jdk(s��|���|jt|�jdd�d
z���	|�|j�yy#1swY��xYw#|�|j�wwxYw)z/Read Github documentation-derived schema files.z(?m)^# .*\n?r�xhtml)�
output_formatNz<root>z</root>�h3�w�h2�pz```�
)�open�markdown�re�sub�read�ET�
fromstringr�close�os�pathrr�strip�write�replace)�in_file�
out_folder�update_file�html�tree�ldf�node�out_paths        r	�read_ms_markdownr-#sC��
�g��8�+�� � ������[�=M�=M�=O�!P�/6�8��8�
�=�=��D��9�4�5�D�
�C���	E�D��x�x�4���?��I�I�K��7�7�<�<�
�I�d�O�4I�4I�4K�L���8�S�)�����T�!��?��I�I�K��C����S��S�_��	�	�)�D�/�1�1�%��<�t�C�D�	E��?��I�I�K��/8�8��.�?��I�I�K��s*�;E�-A;E �)"E �E �/E �E� E5�__main__rz.Usage: %s <Schema-Update.md> [<output folder>])�file��)�__doc__rr r�xml.etree.ElementTree�etree�ElementTreerrr-�__name__�sysr&�len�argv�print�stderr�exitr%�rr	�<module>r>s���*/�	�	��"�"���<�z����J�
�3�8�8�}���
�>�#�(�(�1�+�N�UX�U_�U_�`��������h�h�q�k�G�
�3�8�8�}�q���X�X�a�[�
��W�j�)�r

Zerion Mini Shell 1.0