Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
irc.cpython-313.pyc61 linesDownload Raw Back to __pycache__
1�

2�j+����SrSSKJr SSKJrJrJrJrJrJ	r	J3r4JrJrJ
r
 SSKJr S/r0\S_\
S_\S_\R"S_\S	_\R$S_\5R&S6_\R(S_\R*S_\R,S_\R.S
_\R0S_\R2S_\R4S_\R6S_\R8S_\R:S_\S\	S	\R<S\R>S\R@S\RBS\RS\S0Er"0SS_SS_SS_SS_SS_SS _S!S"_S#S$_S%S$_S&S'_S(S)_S*S)_S+S,_S-S._S/S._S0S1_S2S3_S4S5S.Er#S6r$"S7S\5r%g8)9z�7pygments.formatters.irc8~~~~~~~~~~~~~~~~~~~~~~~9 10Formatter for IRC output11 12:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.13:license: BSD, see LICENSE for details.14�)�	Formatter)15�Keyword�Name�Comment�String�Error�Number�Operator�Generic�Token�16Whitespace)�get_choice_opt�IRCFormatter)�r)�gray�brightblack)�cyan�17brightcyan)�blue�18brightblue)�magentar)�green�brightgreen)�_cyan_�_brightcyan_)�_green_�
_brightgreen_)rr)�red�	brightred)rr)�yellowr )rr)�**r!)z	*magenta*z*brightmagenta*)�_brightred_r"�white�black�r�r�r�r �r��orange�r�brightyellow��19lightgreen�	rr�20�	lightblue�rr��
brightmagenta�
��c�2�[U5S:aU$S=p#SU;aUS-
nSU-nURS5nSU;aUS-
nSU-nURS5n[U5S:�a,US[[U5R	S	5--
nSU-nX!-U-$)21Nr%r�_��*�r�r&)�len�strip�str�
IRC_COLOR_MAP�zfill)�color�text�add�subs    �]D:\code\apps\devtools\python\user_packages\Python313\site-packages\pygments/formatters/irc.py�	ircformatrILs���22�5�z�A�~����N�C�23�e�|��v�
���s�l�����C� ��24�e�|��v�
���s�l�����C� ���5�z�A�~��v��M�%�0�1�7�7��:�:�:���s�l���:����c�:�\rSrSrSrSrSS/r/rSrSr	Sr25Srg	)26r�`a27Format tokens with IRC color sequences28 29The `get_style_defs()` method doesn't do anything special since there is30no support for common styles.31 32Options accepted:33 34`bg`35    Set to ``"light"`` or ``"dark"`` depending on the terminal's background36    (default: ``"light"``).37 38`colorscheme`39    A dictionary mapping token types to (lightbg, darkbg) color names or40    ``None`` (default: ``None`` = use builtin colorscheme).41 42`linenos`43    Set to ``True`` to have line numbers in the output as well44    (default: ``False`` = no line numbers).45�IRC�ircc���[R"U40UD6 [USSS/S5S:HUlUR	SS5=(d [46UlUR	SS5UlSUlg)N�bg�light�dark�colorscheme�linenosFr)	r�__init__r�darkbg�get�47IRC_COLORSrSrT�_lineno)�self�optionss  rHrU�IRCFormatter.__init__ysj�����4�+�7�+�$�W�d�&-�v�%6��A�DJ�K���"�;�;�}�d�;�I�z����{�{�9�e�4�����rJc��UR(a4U=RS-
slURSUR-5 gg)Nr%z%04d: )rTrY�write)rZ�outfiles  rH�
_write_lineno�IRCFormatter._write_lineno�s1���<�<��L�L�A��L��M�M�(�T�\�\�1�2�rJc�$�URU5 UH�up4URRU5nUc%USSnURRU5nUcM%U(a�XPRnUR	S5nUSSHFnU(aUR[
XW55 URS5 URU5 MH US(aUR[
XVS55 M�M�URU5 M� g)N������48)r`rSrWrV�splitr^rI)rZ�tokensourcer_�ttype�valuerD�spl�lines        rH�format_unencoded�IRCFormatter.format_unencoded�s������7�#�'�L�E��$�$�(�(��/�E��-��c�r�49���(�(�,�,�U�3���-���k�k�*���k�k�$�'�����H�D���
�
�i��&<�=��M�M�$�'��&�&�w�/�	%�50�r�7��M�M�)�E�r�7�";�<���
�
�e�$�!(rJ)rYrSrVrTN)�__name__�51__module__�__qualname__�__firstlineno__�__doc__�name�aliases�	filenamesrUr`rk�__static_attributes__�rJrHrr`s+���(�D��e�n�G��I��3�52%rJN)&rq�pygments.formatterr�pygments.tokenrrrrrr	r53rrr
�
pygments.utilr�__all__�Preproc�Type�Word�Builtin�Function�	Namespace�Class�	Exception�	Decorator�Variable�Constant�	Attribute�Tag�Deleted�Inserted�Heading�54SubheadingrXrBrIrrvrJrH�<module>r�s~���)�1�1�1�(��55��56�	�+���1���1�	�57�O�O�5���1�
��L�L�5��
�M�M�6��	�L�L�5��	�M�M�2��	�N�N�7��	�J�J�4��	�N�N�5��	�N�N�2��	�M�M�0�� 	�M�M�0�!�"	�N�N�5�#�$	�H�H�;�%�&�2�58�1��O�O�9����1��O�O�,����:��M�M�9�	�;�9�59�@��Q���Q���A���1�	�60���
�a�
��q��
�a���Q���A���!���!���B�����61�2�� �"�!�"�R�#�$��'�
�,�(9%�9�9%rJ
codekingpro/portable-devtools · Team Ai