B x `i@s@ddlZddlZddlZddlmZddZddZdd ZdS) N)PY2cCspddl}ttdsdStd}d}xF|dk rj|jdddrR|j}|d7}q&|jj |j j @rf|SPq&WdS)Nr _getframer__name__zclick.) __future__hasattrsysr f_globalsget startswithf_backf_codeco_flagsunicode_literals compiler_flag)rfrmidxr5/tmp/pip-unpacked-wheel-za9e8r29/click/_unicodefun.py_find_unicode_literals_frames    rcCsJddlm}tr|rdSt}|dkr*dSddlm}|td|ddS)Nr) disable_unicode_literals_warningr)warnaClick detected the use of the unicode_literals __future__ import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see https://click.palletsprojects.com/python3/) stacklevel)rrrrwarningsrWarning)rZ bad_framerrrr_check_for_unicode_literalss  rc CstrdSyddl}t|j}Wntk r<d}YnX|dkrJdSd}tjdkrddl}y$|j ddg|j |j d d}Wnt k rd }YnXt }d }t|tr|dd }x@|D]4}|}|d r|||d krd}qW|d7}|s|d7}n(|r*|d7}n|ddt|7}d}xHtjdtjdfD],}|r~|d r~|}|dk r`Pq`W|dk r|d|7}td|dS)z=Ensures that the environment is good for unicode on Python 3.Nrasciirposixlocalez-a)stdoutstderrFreplace)z.utf-8z.utf8)zc.utf8zc.utf-8Tz zAdditional information: on this system no suitable UTF-8 locales were discovered. This most likely requires resolving by reconfiguring the locale system.zThis system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issue by exporting the following environment variables: export LC_ALL=C.UTF-8 export LANG=C.UTF-8zThis system lists a couple of UTF-8 supporting locales that you can pick from. The following suitable locales were discovered: {}z, LC_ALLLANGz Click discovered that you exported a UTF-8 locale but the locale system could not pick up from it because it does not exist. The exported locale is '{}' but it is not supportedzClick will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/python3/ for mitigation steps.{})rrcodecslookupgetpreferredencodingname Exceptionos subprocessPopenPIPE communicateOSErrorset isinstancebytesdecode splitlinesstriplowerendswithaddformatjoinsortedenvironr RuntimeError) rZfs_encextrar,rvZ good_localesZ has_c_utf8lineZ bad_localerrr_verify_python3_env4sf          rB)r&r+r _compatrrrrBrrrrs