Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core20/2769/lib/python3.8/__pycache__/ |
Upload File : |
U
yi'; � @ s� d Z ddlZddlZejdedd� dZG dd� d�ZG dd � d �ZG d
d� d�ZG dd
� d
e�Z G dd� de�Z
ddd�Zedkr�e� dS )a Generic output formatting.
Formatter objects transform an abstract flow of formatting events into
specific output events on writer objects. Formatters manage several stack
structures to allow various properties of a writer object to be changed and
restored; writers need not be able to handle relative changes nor any sort
of ``change back'' operation. Specific writer properties which may be
controlled via formatter objects are horizontal alignment, font, and left
margin indentations. A mechanism is provided which supports providing
arbitrary, non-exclusive style settings to a writer as well. Additional
interfaces facilitate formatting events which are not reversible, such as
paragraph separation.
Writer objects encapsulate device interfaces. Abstract devices, such as
file formats, are supported as well as physical devices. The provided
implementations all work with abstract devices. The interface makes
available mechanisms for setting the properties which formatter objects
manage and inserting data into the output.
� Nz"the formatter module is deprecated� )�
stacklevelc @ s� e Zd ZdZd(dd�Zdd� Zdd� Zd d
� Zd)dd�Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd*d$d%�Zd+d&d'�ZdS ),�
NullFormattera= A formatter which does nothing.
If the writer parameter is omitted, a NullWriter instance is created.
No methods of the writer are called by NullFormatter instances.
Implementations should inherit from this class if implementing a writer
interface but don't need to inherit any implementation.
Nc C s |d krt � }|| _d S �N)�
NullWriter�writer��selfr � r
�/usr/lib/python3.8/formatter.py�__init__) s zNullFormatter.__init__c C s d S r r
�r � blankliner
r
r �
end_paragraph- � zNullFormatter.end_paragraphc C s d S r r
�r r
r
r �add_line_break. r zNullFormatter.add_line_breakc O s d S r r
�r �args�kwr
r
r �add_hor_rule/ r zNullFormatter.add_hor_rulec C s d S r r
�r �format�counterr r
r
r �add_label_data0 r zNullFormatter.add_label_datac C s d S r r
�r �datar
r
r �add_flowing_data1 r zNullFormatter.add_flowing_datac C s d S r r
r r
r
r �add_literal_data2 r zNullFormatter.add_literal_datac C s d S r r
r r
r
r �flush_softspace3 r zNullFormatter.flush_softspacec C s d S r r
�r �alignr
r
r �push_alignment4 r zNullFormatter.push_alignmentc C s d S r r
r r
r
r �
pop_alignment5 r zNullFormatter.pop_alignmentc C s d S r r
)r �xr
r
r � push_font6 r zNullFormatter.push_fontc C s d S r r
r r
r
r �pop_font7 r zNullFormatter.pop_fontc C s d S r r
)r �marginr
r
r �push_margin8 r zNullFormatter.push_marginc C s d S r r
r r
r
r �
pop_margin9 r zNullFormatter.pop_marginc C s d S r r
�r �spacingr
r
r �set_spacing: r zNullFormatter.set_spacingc G s d S r r
�r �stylesr
r
r �
push_style; r zNullFormatter.push_style� c C s d S r r
�r �nr
r
r � pop_style<