HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/pip/_vendor/pygments/__pycache__/plugin.cpython-38.pyc
U

�{�e
�@s@dZdZdZdZdZdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)a
    pygments.plugin
    ~~~~~~~~~~~~~~~

    Pygments plugin interface. By default, this tries to use
    ``importlib.metadata``, which is in the Python standard
    library since Python 3.8, or its ``importlib_metadata``
    backport for earlier versions of Python. It falls back on
    ``pkg_resources`` if not found. Finally, if ``pkg_resources``
    is not found either, no plugins are loaded at all.

    lexer plugins::

        [pygments.lexers]
        yourlexer = yourmodule:YourLexer

    formatter plugins::

        [pygments.formatters]
        yourformatter = yourformatter:YourFormatter
        /.ext = yourformatter:YourFormatter

    As you can see, you can define extensions for the formatter
    with a leading slash.

    syntax plugins::

        [pygments.styles]
        yourstyle = yourstyle:YourStyle

    filter plugin::

        [pygments.filter]
        yourfilter = yourfilter:YourFilter


    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
zpygments.lexerszpygments.formatterszpygments.styleszpygments.filterscCs�zddlm}Wn�tk
r�zddlm}WnZtk
r�zddlm}Wn$ttfk
rtgYYYSX||�YYSYnXYnX|�}t|d�r�|j|d�S|�	|g�SdS)N�)�entry_points)�iter_entry_points�select)�group)
�importlib.metadatar�ImportErrorZimportlib_metadataZpip._vendor.pkg_resourcesr�OSError�hasattrr�get)Z
group_namerr�groups�r�?/tmp/pip-unpacked-wheel-_0scjqea/pip/_vendor/pygments/plugin.pyr/s
rccstt�D]}|��VqdS�N)r�LEXER_ENTRY_POINT�load�Z
entrypointrrr
�find_plugin_lexersGsrccs"tt�D]}|j|��fVqdSr)r�FORMATTER_ENTRY_POINT�namerrrrr
�find_plugin_formattersLsrccs"tt�D]}|j|��fVqdSr)r�STYLE_ENTRY_POINTrrrrrr
�find_plugin_stylesQsrccs"tt�D]}|j|��fVqdSr)r�FILTER_ENTRY_POINTrrrrrr
�find_plugin_filtersVsrN)
�__doc__rrrrrrrrrrrrr
�<module>s(