o
    8Va                     @   sV   d dl Z d dlZdZde ZdZde ZdZe dZ	g dZ
d	gZe
efd
dZdS )    NzFile contains a unicode character : %s, line %s. But with no encoding header. See https://www.python.org/dev/peps/pep-0263/ and add '# coding=utf-8'zlFile contains a unicode character : %s, line %s. But not in the whitelist. Add the file to the whitelist in zFile contains a unicode character : %s, line %s. And is in the whitelist, but without the encoding header. See https://www.python.org/dev/peps/pep-0263/ and add '# coding=utf-8'.znFile does not contain a unicode character : %s.but is in the whitelist. Remove the file from the whitelist in zxFile does not contain a unicode character : %s.but contains the header '# coding=utf-8' or equivalent.Remove the header.z.^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+))z*/bin/authors_update.pyz**/sympy/testing/tests/test_code_quality.pyz-*/sympy/physics/vector/tests/test_printing.pyz(*/physics/quantum/tests/test_printing.pyz%*/sympy/vector/tests/test_printing.pyz**/sympy/parsing/tests/test_sympy_parser.pyz,*/sympy/printing/pretty/tests/test_pretty.pyz**/sympy/printing/tests/test_conventions.pyz&*/sympy/printing/tests/test_preview.pyz*/liealgebras/type_g.pyz*/liealgebras/weyl_group.pyz"*/liealgebras/tests/test_type_G.pyz*/sympy/physics/wigner.pyz&*/sympy/physics/optics/polarization.pyz"*/sympy/physics/mechanics/joint.pyz(*/sympy/parsing/latex/_antlr/__init__.pyc              
   C   s  d}d}d}d}|D ]}t  | |rd} nq
|D ]}t  | |r'd}d} nq|rzt|D ]=\}	}
|	dv rHt|
}|rH|d dkrHd}z|
jdd W q. ttfyk   d}|du riJ t	| |	d f Y q.w |sv|sxJ t
|  dS dS t|D ]C\}	}
|	dv rt|
}|r|d dkrd}z|
jdd W q~ ttfy   d}|rJ t| |	d f J t| |	d f w |s|rJ t|  dS dS )	a]  Test helper function for python 2 importability test

    This test checks whether the file has
    # coding=utf-8
    or
    # -*- coding: utf-8 -*-
    line if there is a unicode character in the code

    The test may have to operate on filewise manner, so it had moved
    to a separate process.
    May remove after deprecating python 2.7.
    FT)r      r   zutf-8ascii)encodingN)fnmatch	enumerateencoding_header_rematchgrouplowerencodeUnicodeEncodeErrorUnicodeDecodeErrormessage_unicode_Cmessage_unicode_Dmessage_unicode_Bmessage_unicode_Amessage_unicode_E)fnameZ	test_fileunicode_whitelistunicode_strict_whitelistZhas_coding_utf8Zhas_unicodeZis_in_whitelistZis_in_strict_whitelistZpattidxliner    r   ?/usr/lib/python3/dist-packages/sympy/testing/quality_unicode.py_test_this_file_encodingE   sp   

	r   )rer   r   __file__r   r   r   r   compiler   r   r   r   r   r   r   r   <module>   s2    