관리-도구
편집 파일: other.cpython-311.pyc
� �Dg� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ g d�Z G d� de� � Z G d � d e� � ZdZdZ G d � de� � ZdS )z� pygments.formatters.other ~~~~~~~~~~~~~~~~~~~~~~~~~ Other formatters: NullFormatter, RawTokenFormatter. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � )� Formatter)�get_choice_opt)�Token)�colorize)� NullFormatter�RawTokenFormatter�TestcaseFormatterc �* � e Zd ZdZdZddgZdgZd� ZdS )r z; Output the text unchanged without any formatting. z Text only�text�nullz*.txtc � � | j }|D ]E\ }}|r)|� |� |� � � � �0|� |� � �Fd S �N)�encoding�write�encode)�self�tokensource�outfile�enc�ttype�values ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/pygments/formatters/other.py�formatzNullFormatter.format sd � ��m��'� %� %�L�E�5�� %�� � �e�l�l�3�/�/�0�0�0�0�� � �e�$�$�$�$� %� %� N)�__name__� __module__�__qualname__�__doc__�name�aliases� filenamesr � r r r r sE � � � � � �� � �D��v��G�� �I�%� %� %� %� %r r c �4 � e Zd ZdZdZddgZdgZdZd� Zd� Z d S ) 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 �J � t j | fi |�� d| _ t |dg d�d� � | _ |� dd � � | _ | j du rd| _ | j �> t | j d� � d S # t $ r t d| j �d �� � �w xY wd S ) N�ascii�compress)� �none�gz�bz2r) �error_colorT�redzInvalid color z specified) r �__init__r r r( �getr- r �KeyError� ValueError�r �optionss r r/ zRawTokenFormatter.__init__>