| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/formatters/__pycache__/ |
Upload File : |
a
SҼa� � @ sx d Z ddlmZ ddlmZ ddlmZ ddlmZ g d�Z G dd� de�Z
G d d
� d
e�ZdZdZ
G d
d� de�ZdS )z�
pygments.formatters.other
~~~~~~~~~~~~~~~~~~~~~~~~~
Other formatters: NullFormatter, RawTokenFormatter.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )� Formatter)�get_choice_opt)�Token)�colorize)�
NullFormatter�RawTokenFormatter�TestcaseFormatterc @ s* e Zd ZdZdZddgZdgZdd� ZdS ) r z;
Output the text unchanged without any formatting.
z Text only�textZnullz*.txtc C s8 | j }|D ](\}}|r(|�|�|�� q
|�|� q
d S �N)�encoding�write�encode)�self�tokensource�outfile�enc�ttype�value� r �=/usr/lib/python3.9/site-packages/pygments/formatters/other.py�format s
zNullFormatter.formatN)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenamesr r r r r r s
r c @ s6 e Zd ZdZdZddgZdgZdZdd� Zd d
� Z dS )r a}
Format tokens as a raw representation for storing token streams.
The format is ``tokentype<TAB>repr(tokenstring)\n``. The output can later
be converted to a token stream with the `RawTokenLexer`, described in the
:doc:`lexer list <lexers>`.
Only two options are accepted:
`compress`
If set to ``'gz'`` or ``'bz2'``, compress the output with the given
compression algorithm after encoding (default: ``''``).
`error_color`
If set to a color name, highlight error tokens using that color. If
set but with no value, defaults to ``'red'``.
.. versionadded:: 0.11
z
Raw tokens�raw�tokensz*.rawFc K s� t j| fi |�� d| _t|dg d�d�| _|�dd �| _| jdu rJd| _| jd ur�zt| jd� W n ty� t d| j ��Y n0 d S ) N�ascii�compress)� Znone�gz�bz2r"