← Back
Editing: filter.cpython-311.pyc
� �E�c� � �N � d Z dd�Zd� Z G d� d� � Z G d� de� � ZdS ) z� pygments.filter ~~~~~~~~~~~~~~~ Module that implements the default filter. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. Nc �4 �� �fd�}|D ]} ||| � � } �| S )z� Use this method to apply an iterable of filters to a stream. If lexer is given it's forwarded to the filter, otherwise the filter receives `None`. c 3 �D �K � | � �|� � E d {V �� d S �N)�filter)�filter_�stream�lexers ��1/usr/lib/python3/dist-packages/pygments/filter.py�_applyzapply_filters.<locals>._apply s3 �� � � ��>�>�%��0�0�0�0�0�0�0�0�0�0�0� � )r �filtersr r r s ` r � apply_filtersr sC �� �1� 1� 1� 1� 1�� )� )������(�(����Mr c �h � t | j t ft | d� � | j | d�� � S )z� Decorator that converts a function into a filter:: @simplefilter def lowercase(self, lexer, stream, options): for ttype, value in stream: yield ttype, value.lower() � __module__)r �__doc__�function)�type�__name__�FunctionFilter�getattrr )�fs r �simplefilterr s>