\bgv ddlZddlZddlmZddlmZddlmZdZdZ dZ ej fd e d e fd Z ej fd ed e d dfd ZGddeZdS)N)RawConfigParser)py39)SetuptoolsDeprecationWarningct|trtjd|S |d}tjd|}|d}n#t $rYnwxYw|S)NNFDutf-8) isinstancestr unicodedata normalizedecodeencode UnicodeError)paths i/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/unicode_utils.py decomposer s$2$UD111 {{7##$UD11{{7##      Ks?A,, A98A9ct|tr|Stjpd}|df}|D])} ||cS#t $rY&wxYwdS)z] Ensure that the given path is decoded, ``None`` when no expected encoding works r N)r r sysgetfilesystemencodingrUnicodeDecodeError)rfs_enc candidatesencs rfilesys_decoders $  & ( ( 3GFJ ;;s## # # #!    H  4sA  AAcP ||S#t$rYdSwxYw)z/turn unicode encoding into a functional routineN)rUnicodeEncodeError)stringrs r try_encoder+s;}}S!!! tts  %%filereturnc^ t|dd5}|cdddS#1swxYwYdS#t$r`t||t|d|5}|cdddcYS#1swxYwYYdSwxYw)a  First try to read the file with UTF-8, if there is an error fallback to a different encoding ("locale" by default). Returns the content of the file. Also useful when reading files that might have been produced by an older version of setuptools. rr encodingNr fallback_encoding)openreadr_Utf8EncodingNeededemit)r r'fs r_read_utf8_with_fallbackr-3sN $g . . . !6688                     d>O PPP $&7 8 8 8 A6688                     sPA5 A9A9A8B,:B B,B! !B,$B! %B,+B,cfgc ||ddS#t$rKt||||||YdSwxYw)zSame idea as :func:`_read_utf8_with_fallback`, but for the :meth:`RawConfigParser.read` method. This method may call ``cfg.clear()``. r r$r&N)r)rr*r+clear)r.r r's r_cfg_read_utf8_with_fallbackr1Cs3 ((((( 333  d>O PPP   12222223sAA0/A0ceZdZdZdZdS)r*zZ `encoding="utf-8"` fails with {file!r}, trying `encoding={fallback_encoding!r}`. a Fallback behaviour for UTF-8 is considered **deprecated** and future versions of `setuptools` may not implement it. Please encode {file!r} with "utf-8" to ensure future builds will succeed. If this file was produced by `setuptools` itself, cleaning up the cached files and re-building/re-installing the package with a newer version of `setuptools` (e.g. by updating `build-system.requires` in its `pyproject.toml`) might solve the problem. N)__name__ __module__ __qualname___SUMMARY_DETAILSrr*r*SsH HHHr9r*)rr configparserrcompatrwarningsrrrrLOCALE_ENCODINGr r-r1r*r8r9rr>s ((((((222222   *;?:N  3 SV    "8<7K 3 3  3 # 3  3 3 3 3 6r9