HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/pygments/__pycache__/plugin.cpython-37.pyc
B

��f
�@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�yddlm}Wnltk
r|yddlm}WnFtk
rvyddlm}Wnttfk
rhgSX||�SYnXYnX|�}t|d�r�|j|d�S|�	|g�SdS)N�)�entry_points)�iter_entry_points�select)�group)
Zimportlib.metadatar�ImportErrorZimportlib_metadata�
pkg_resourcesr�OSError�hasattrr�get)Z
group_namerr�groups�r�@/opt/alt/python37/lib/python3.7/site-packages/pygments/plugin.pyr/s
rccs xtt�D]}|��Vq
WdS)N)r�LEXER_ENTRY_POINT�load)�
entrypointrrr
�find_plugin_lexersGsrccs&x tt�D]}|j|��fVq
WdS)N)r�FORMATTER_ENTRY_POINT�namer)rrrr
�find_plugin_formattersLsrccs&x tt�D]}|j|��fVq
WdS)N)r�STYLE_ENTRY_POINTrr)rrrr
�find_plugin_stylesQsrccs&x tt�D]}|j|��fVq
WdS)N)r�FILTER_ENTRY_POINTrr)rrrr
�find_plugin_filtersVsrN)
�__doc__rrrrrrrrrrrrr
�<module>'s