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__/ |
� ̍�d� � � � d Z ddlmZ ddlmZ ddlZddlZddlmZ ddl Z ddl Z ddd�Zd � Zd � Z edk r e � � dS dS )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 �. � t j | � � }|� d� � }t j |� � }|� dt �� � D ]7}|j D ]-}|� dt d z � � r|j |= �.�8t � � }t j t j |d d� � dt j � � }|� � � D ]d}|j dk r)|� |t j |� � � � �6|� ||� |j � � � � �e|� � � |� � � t% j |d | � � d S ) Nz styles.xmlz//style:page-layout-properties)� namespacesz{%s}r r �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'