Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
PIL
/
__pycache__
/
Filename :
PSDraw.cpython-310.pyc
back
Copy
o Z#�a? � @ s2 d dl Z ddlmZ G dd� d�ZdZdZdZdS ) � N� )�EpsImagePluginc @ sV e Zd ZdZddd�Zddd�Zdd� Zd d � Zdd� Zd d� Z dd� Z ddd�ZdS )�PSDrawz{ Sets up printing to the given file. If ``fp`` is omitted, ``sys.stdout.buffer`` or ``sys.stdout`` is assumed. Nc C s4 |szt jj}W n ty t j}Y nw || _d S �N)�sys�stdout�buffer�AttributeError�fp)�selfr � r �,/usr/lib/python3/dist-packages/PIL/PSDraw.py�__init__ s � zPSDraw.__init__c C s: | j �d� | j �t� | j �t� | j �d� i | _dS )z=Set up printing of a document. (Write PostScript DSC header.)sD %!PS-Adobe-3.0 save /showpage { } def %%EndComments %%BeginDocument s %%EndProlog N)r �write� EDROFF_PS�VDI_PS�isofont)r �idr r r �begin_document( s � zPSDraw.begin_documentc C s* | j �d� t| j d�r| j �� dS dS )z-Ends printing. (Write PostScript DSC footer.)s% %%EndDocument restore showpage %%End �flushN)r r �hasattrr )r r r r �end_document8 s �zPSDraw.end_documentc C sJ t |d�}|| jvr| j�d||f � d| j|<