U a@stddlZddlZddlZddlZejdp4dejkZeje e dddZ Gddde e Zd ae d d d ZdS) NlinuxZbsd)encodingreturncCs:|dkr dSzt|jdkWStk r4YdSXdS)zGiven an encoding this figures out if the encoding is actually ASCII (which is something we don't actually want in most cases). This is necessary because ASCII comes under many names such as ANSI_X3.4-1968. NFascii)codecslookupname LookupError)rr TC:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-1tps7o9u\werkzeug\filesystem.py_is_ascii_encoding s r c@seZdZdZdS)BrokenFilesystemWarningzcThe warning used by Werkzeug to signal a broken filesystem. Will only be used once per runtime.N)__name__ __module__ __qualname____doc__r r r r r sr F)rcCs:t}tr|rt|r6ts2td|tdadS|S)aReturns the filesystem encoding that should be used. Note that this is different from the Python understanding of the filesystem encoding which might be deeply flawed. Do not use this value against Python's string APIs because it might be different. See :ref:`filesystem-encoding` for the exact behavior. The concept of a filesystem encoding in generally is not something you should rely on. As such if you ever need to use this function except for writing wrapper code reconsider. z[Detected a misconfigured UNIX filesystem: Will use UTF-8 as filesystem encoding instead of Tzutf-8)sysgetfilesystemencoding#has_likely_buggy_unicode_filesystemr !_warned_about_filesystem_encodingwarningswarnr )rvr r r get_filesystem_encoding!s r)rrtypingtrplatform startswithrOptionalstrboolr RuntimeWarningUnicodeWarningr rrr r r r s