403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /tmp/calpy/fontTools/diff/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tmp/calpy/fontTools/diff/__pycache__/__init__.cpython-311.pyc
�

ϥ=j:5���ddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
ddlmZmZddlmZmZdeddfd	�Zd
edefd�Z		ddeed
e	eede	eedeefd�Z				ddeded
e	eede	eedededeeeffd�Z				ddeded
e	eede	eedededeeeffd�Zd�Zdee
fd�ZdS)�N)�Iterable�Iterator�List�Optional�Text�Tuple���color_unified_diff_line)�run_external_diff�u_diff)�file_exists�get_tables_argument_list�output�returnc�0�|sdStj���s!tj�|��dSt	jd��pt
jd��}|s!tj�|��dS|g}dtj�	|��vr|�
d��tj|tj
d���}	|j�|��|j���|���dS#t"t$f$r'|jr|j���YdSYdSt&$r"|jr|j����wxYw)zDPipes output to a pager if stdout is a TTY and a pager is available.N�PAGER�lessz-RT)�stdin�text)�sys�stdout�isatty�write�os�getenv�shutil�which�path�basename�append�
subprocess�Popen�PIPEr�close�wait�BrokenPipeError�KeyboardInterrupt�	Exception)r�pager�	pager_cmd�procs    �J/tmp/claude-1015/pip-target-jmvfl800/lib/python/fontTools/diff/__init__.py�pipe_outputr.
s��������:�������
���� � � ����I�g���6�&�,�v�"6�"6�E����
���� � � �����I�
���!�!�%�(�(�(�(����������I�Z�_�4�H�H�H�D���
���� � � ��
�������	�	��������.�/�����:�	��J���������	�	�	������:�	��J������
����s�*AD3�31F�*+F�	diff_toolc��	tj|dgtjtjd���}n#t$rYdSwxYw|jpd|jpdz}d|vS)z9Returns True if the provided diff executable is GNU diff.z	--versionT)r�stderrrF�z
GNU diffutils)r"�runr$�OSErrorrr1)r/r,�version_outputs   r-�_is_gnu_diffr63s}����~�
��$��?��?��	
�
�
���������u�u������k�'�R�D�K�,=�2�>�N��n�,�,s�.1�
?�?�tags�include_tables�exclude_tablesc#�8K�|D]}|r||vr�	|r||vr�|V��dS)N�)r7r8r9�tags    r-�_iter_filtered_table_tagsr=CsV����
�����	�c�^�3�3���	�c��7�7���	�	�	�	�������file1�file2�
font_number_1�
font_number_2c
����ddlm}||d|���5}||d|���5}d�|j���D���d�|j���D���t	tt
��z||�������}	��fd�|	D��}
��fd	�|	D��}��fd
�|	D��}d}
g}|�d��|�d|�d
���|�d|�d
���|
rad}
|�dt|
���d���|
D]6}|�d|�dt|j|���d����7|rad}
|�dt|���d���|D]6}|�d|�dt|j|���d����7|�dt|���d���|D]�}|j|}|j|}||kr*|�d|�dt|���d����Ld}
|�d|�dt|���dt|���d�����|
r|�d��n|�d��|
d�	|��fcddd��cddd��S#1swxYwYddd��dS#1swxYwYdS) Nr��TTFontT��lazy�
fontNumberc�,�h|]}t|����Sr;��str��.0r<s  r-�	<setcomp>zsummarize.<locals>.<setcomp>^���9�9�9�c��S���9�9�9r>c�,�h|]}t|����Sr;rKrMs  r-rOzsummarize.<locals>.<setcomp>_rPr>�r8r9c�$��g|]}|�v�|�v�
|��
Sr;r;�rNr<�tags1�tags2s  ��r-�
<listcomp>zsummarize.<locals>.<listcomp>k�+���N�N�N��C�5�L�L�S��=M�=M��=M�=M�=Mr>c�$��g|]}|�v�|�v�
|��
Sr;r;rTs  ��r-rWzsummarize.<locals>.<listcomp>lrXr>c�$��g|]}|�v�|�v�
|��
Sr;r;rTs  ��r-rWzsummarize.<locals>.<listcomp>m�&���I�I�I��3�%�<�<�C�5�L�L��L�L�Lr>zBinary table summary:
z	  file1: �
z	  file2: Fz
Tables only in file1 (z):
z- z (z bytes)
z
Tables only in file2 (z+ z
Tables in both (z  z: SAME (z* z: DIFF (z vs z
Result: SAME
z
Result: DIFFERENT
r2)
�fontTools.ttLibrF�reader�keys�sorted�setr=r!�len�join)r@rAr8r9rBrCrF�font1�font2�all_tags�only1�only2�both�	identical�linesr<�data1�data2rUrVs                  @@r-�	summarizernPsS����'�&�&�&�&�&�	��u�4�M�:�:�:�6)�>C���u�4�M�:�:�:�6)�>C�9�9�U�\�%6�%6�%8�%8�9�9�9��9�9�U�\�%6�%6�%8�%8�9�9�9����)��E�M�#1�#1����
�
�
�
��O�N�N�N�N��N�N�N��N�N�N�N�N��N�N�N��I�I�I�I�I�x�I�I�I���	���
���/�0�0�0�
���*��*�*�*�+�+�+�
���*��*�*�*�+�+�+��	L��I��L�L�D�C��J�J�D�D�D�E�E�E��
L�
L�����J�#�J�J��U�\�#�->�)?�)?�J�J�J�K�K�K�K��	L��I��L�L�D�C��J�J�D�D�D�E�E�E��
L�
L�����J�#�J�J��U�\�#�->�)?�)?�J�J�J�K�K�K�K�
���9�#�d�)�)�9�9�9�:�:�:��	V�	V�C��L��%�E��L��%�E���~�~����D�#�D�D�s�5�z�z�D�D�D�E�E�E�E�!�	����T�#�T�T�s�5�z�z�T�T�s�5�z�z�T�T�T�U�U�U�U��	2��L�L�+�,�,�,�,��L�L�0�1�1�1��"�'�'�%�.�.�(�m6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)����6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)�6)����6)�6)�6)�6)�6)�6)s5�K>�J'K&�
K>�&K*	�*K>�-K*	�.K>�>L�Lc�d���ddlm}||d|���5}||d|���5}d�|j���D���d�|j���D���t	tt
��z||�������}	��fd�|	D��}
t��}|
D]7}|j|}
|j|}|
|kr|�|���8|cddd��cddd��S#1swxYwYddd��dS#1swxYwYdS)	NrrETrGc�,�h|]}t|����Sr;rKrMs  r-rOz,get_binary_exclude_tables.<locals>.<setcomp>�rPr>c�,�h|]}t|����Sr;rKrMs  r-rOz,get_binary_exclude_tables.<locals>.<setcomp>�rPr>rRc�$��g|]}|�v�|�v�
|��
Sr;r;rTs  ��r-rWz-get_binary_exclude_tables.<locals>.<listcomp>�r[r>)r]rFr^r_r`rar=�add)r@rAr8r9rBrCrFrdrerfri�outr<rlrmrUrVs               @@r-�get_binary_exclude_tablesru�s
����'�&�&�&�&�&�	��u�4�M�:�:�:��>C���u�4�M�:�:�:��>C�9�9�U�\�%6�%6�%8�%8�9�9�9��9�9�U�\�%6�%6�%8�%8�9�9�9����)��E�M�#1�#1����
�
�
�
��J�I�I�I�I�x�I�I�I���e�e���	�	�C��L��%�E��L��%�E���~�~����������5����������������������������������������������s5�D%�CD
�4D%�
D	�D%�D	�D%�%D)�,D)c�:�d}	ttjdd���}nu#t$rYnit$r]tjt
jt
j��}tj	|tj
�����YnwxYw|S)z!Compare two fonts for differencesrr	N)r3r�argvr(r'r�open�devnull�O_WRONLY�dup2r�fileno)�retrys  r-�mainr~�s����C�.��#�(�1�2�2�,�������
�
�
����.�.�.��'�"�*�b�k�2�2��
�����*�*�,�,�-�-�-�-�-�	.����
�Js�!&�
B�A#B�Brwc���tjd���}|�dddd���|�dd	td
d���|�d
dtddd���|�ddtddd���|�dtd���|�dtdd���|�dgd�dd���|�dtd d!d"�#��|�d$td d!d%�#��|�d&d'dd(���|�d)d*dd+���|�d,d-dd.���|�d/d0�1��|�d2d3�1��|�|��}|jr<|jr5|js,tj
�d4tj
����d5S|jsd6|_t|j��s=|js4tj
�d7|j�d8tj
����d5St|j��s=|js4tj
�d7|j�d8tj
����d5St#|j��}t#|j��}|jr�	t+|j|j|||j|j�9��\}}|jstj�|��|rd:nd;S#t2$r@}|js.tj
�d<|�tj
����Yd}~d5Sd}~wwxYw|jr`t5|j|j|||j|j�9���|��fd=�|D��}n&|�g}|�t9�����|j}|jd>kp|jdkotjj}	|�tAj!d?��}nU|rStAj!|��}|�=|js4tj
�d@|j�dAtj
����d5S	|r�|j"}
|
�O|j#d
krdBg}
ndC�$|j#��g}
tK|��r|
�&dD��n|
�'��}
tQ||
|j|j|||j|jd6�E�	�	}n0tS|j|j|j#|||j|jd6�F��}|	rdG�|D��}dH�*|��}|jstW|��|rd;nd:S#t2$r@}|js.tj
�d<|�tj
����Yd}~d5Sd}~wwxYw)INz&An OpenType table diff tool for fonts.)�descriptionz-lz	--summary�
store_truez.Report table presence and binary equality only)�action�helpz-Uz--lines�z5Number of context lines for unified diff (default: 3))�type�defaultr�z-tz	--include�+z5Font tables to include. Multiple options are allowed.)r��nargsr�r�z-xz	--excludez5Font tables to exclude. Multiple options are allowed.z--diffz.Run external diff tool command (default: diff))r�r�z
--diff-argz*External diff tool arguments (default: -u)z--color)�auto�never�alwaysr�z*Whether to colorize output (default: auto))�choicesr�r�z--y1r?�NUMBERzMSelect font number for TrueType Collection (.ttc/.otc) FILE1, starting from 0)r�r��metavarr�z--y2zMSelect font number for TrueType Collection (.ttc/.otc) FILE2, starting from 0z-az--alwaysz'Compare tables even if binary identicalz-bz--binaryz0Compare tables only if binaries differ (default)z-qz--quietzSuppress all output�FILE1zFont file path 1)r��FILE2zFont file path 2zv[*] Error: --always and --binary are mutually exclusive options. Please use ONLY one of these options in your command.�Tz[*] ERROR: The file path 'z' can not be found.)r8r9rBrCrr	z[*] ERROR: c���g|]}|�v�|��	Sr;r;)rNr<�excluded_binary_tabless  �r-rWzrun.<locals>.<listcomp>qs+�������s�:P�/P�/P��/P�/P�/Pr>r��diffz.[*] ERROR: The external diff tool executable 'z' was not found.z-uz-u{}z-F^\s\s<)r8r9�
font_number_a�
font_number_b�use_multiprocess)�
context_linesr8r9r�r�r�c�,�g|]}t|����Sr;r
)rN�lines  r-rWzrun.<locals>.<listcomp>�s!��G�G�G��-�d�3�3�G�G�Gr>r2),�argparse�ArgumentParser�add_argument�intrL�
parse_argsr��binary�quietrr1rr�lineseprr�r�r�include�exclude�summaryrn�y1�y2rr)ru�extendr`r��colorrrr�diff_argrk�formatr6r!�splitrr
rcr.)rw�parser�args�include_list�exclude_listrjr�er/�color_outputr�r�s           @r-r3r3�sk����
$�<����F�������
=�	���������
��
D����������
���
D�
���������
���
D�
��������s�!Q���������
��
9�	��������+�+�+��
9�	��������
���
\���������
���
\�����������
6�	����������
?�	��������i��3H���������&8��9�9�9�
����&8��9�9�9�%�0�0��6�6�D��{��t�{���z�	��J���U�HJ�
�U�U�
�
�
��q��;������t�z�"�"���z�	��J���X�T�Z�X�X�B�J�X�X�
�
�
��q��t�z�"�"���z�	��J���X�T�Z�X�X�B�J�X�X�
�
�
��q�*B�$�,�)O�)O�L�)A�$�,�)O�)O�L��|��	� )��
��
�+�+�"�g�"�g�
!�!�!��I�v��:�
)��
� � ��(�(�(�!�(�1�1�q�(���	�	�	��:�
@��
� � �!>�q�!>�"�*�!>�!>�?�?�?��1�1�1�1�1�����	����
�{�@�!:��J��J�'�'��'��'�
"
�"
�"
���#�����+����L�L��#�!������'=� >� >�?�?�?��	�I��:��)���
�f��2���!2�����L��(�(�	�	�	���L��+�+�	����:�
��
� � �@��	�@�@�35�:�@�@�����1�/��!	��}�H����:��?�?� $�v�H�H� &�
�
�d�j� 9� 9�:�H��	�*�*�1��O�O�K�0�0�0��#�>�>�+�+��&����
��
�+�+�"�g�"�g�!%�
�
�
�F�F���
��
�"�j�+�+�"�g�"�g�!%�	�	�	�F��	H�G�G��G�G�G�F���������z�	 �������!�q�q��!�������z�	<��J���:�1�:�b�j�:�:�;�;�;��q�q�q�q�q��������s2�AL,�,
M6�65M1�1M6�;D	V�
W�5W
�
W)NN)NNr?r?)r�rrrr"�typingrrrrrrr�rr�rr
�utilsrrrLr.�boolr6r=r�rnrur~r3r;r>r-�<module>r�s�������	�	�	�	�
�
�
�
�
�
�
�
�����B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�*�*�*�*�*�*�+�+�+�+�+�+�+�+�8�8�8�8�8�8�8�8�#��#��#�#�#�#�L
-�C�
-�D�
-�
-�
-�
-�$+/�*.�
�
�
�3�-�
��T�#�Y�'�
��T�#�Y�'�
��c�]�	
�
�
�
� +/�*.���
@)�@)��@)��@)��T�#�Y�'�@)��T�#�Y�'�	@)�
�@)��
@)��4��9��@)�@)�@)�@)�L+/�*.���
$�$��$��$��T�#�Y�'�$��T�#�Y�'�	$�
�$��
$��4��9��$�$�$�$�N���(k�d�4�j�k�k�k�k�k�kr>

Youez - 2016 - github.com/yon3zu
LinuXploit