Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/openpyxl/reader/__pycache__/drawings.cpython-37.pyc
Назад
B �5�g� � @ s� d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m Z mZ d dlm Z d dlmZmZ d dlmZ d d lmZ d d� ZdS ) � )�BytesIO)�warn)� fromstring)�IMAGE_NS)�get_rel� get_rels_path�get_dependents)�SpreadsheetDrawing)�Image�PILImage)� ChartSpace)� read_chartc C s� | � |�}t|�}yt�|�}W n tk r@ td� g g fS X t|�}g }|| �� krdt| |�}g }x~|j D ]t}yt | ||jt�} W n@ tk r� } z"td|j� d|� d| � �� wpW dd} ~ X Y nX t | �}|j|_|�|� qpW g }ts�||fS x�|jD ]�}|�|j�} | jtk�r ytt| � | j���}W n. tk �rb d�| j�}t|� �w Y nX |j�� dk�r�d�|j�}t|� �q |j|_|�|� �q W ||fS ) z} Given the path to a drawing file extract charts and images Ignore errors due to unsupported parts of DrawingML zhDrawingML support is incomplete and limited to charts and images only. Shapes and drawings will be lost.zUnable to read chart z from � Nz7The image {0} will be removed because it cannot be readZWMFz?{0} image format is not supported so the image is being dropped)�readr r Z from_tree� TypeErrorr r �namelistr Z_chart_relsr �idr r �anchor�appendr Z _blip_rels�get�embed�Typer r r �target�OSError�format�upper)�archive�path�src�treeZdrawingZ rels_path�depsZcharts�rel�cs�e�chartZimages�dep�image�msg� r( �N/home/digitalm-up/venv/lib/python3.7/site-packages/openpyxl/reader/drawings.py�find_images sP r* N)�ior �warningsr Zopenpyxl.xml.functionsr Zopenpyxl.xml.constantsr Zopenpyxl.packaging.relationshipr r r Z$openpyxl.drawing.spreadsheet_drawingr Zopenpyxl.drawing.imager r Zopenpyxl.chart.chartspacer Zopenpyxl.chart.readerr r* r( r( r( r) �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка