PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
setuptools
import unicodedata import sys from setuptools.extern import six # HFS Plus uses decomposed UTF-8 def decompose(path): if isinstance(path, six.text_type): return unicodedata.normalize('NFD', path) try: path = path.decode('utf-8') path = unicodedata.normalize('NFD', path) path = path.encode('utf-8') except UnicodeError: pass # Not UTF-8 return path def filesys_decode(path): """ Ensure that the given path is decoded, NONE when no expected encoding works """ if isinstance(path, six.text_type): return path fs_enc = sys.getfilesystemencoding() or 'utf-8' candidates = fs_enc, 'utf-8' for enc in candidates: try: return path.decode(enc) except UnicodeDecodeError: continue def try_encode(string, enc): "turn unicode encoding into a functional routine" try: return string.encode(enc) except UnicodeEncodeError: return None
[-] dist.pyc
[edit]
[-] depends.pyc
[edit]
[-] sandbox.py
[edit]
[-] py26compat.pyc
[edit]
[-] depends.py
[edit]
[-] glob.pyc
[edit]
[-] py31compat.pyc
[edit]
[-] cli.exe
[edit]
[-] cli-64.exe
[edit]
[-] msvc.pyc
[edit]
[+]
..
[-] unicode_utils.pyc
[edit]
[-] py27compat.py
[edit]
[-] gui.exe
[edit]
[+]
extern
[-] gui-64.exe
[edit]
[-] script.tmpl
[edit]
[-] ssl_support.pyc
[edit]
[-] package_index.py
[edit]
[-] __init__.pyc
[edit]
[-] windows_support.py
[edit]
[-] glob.py
[edit]
[-] namespaces.pyc
[edit]
[-] launch.py
[edit]
[-] dist.py
[edit]
[-] monkey.pyc
[edit]
[-] launch.pyc
[edit]
[-] site-patch.py
[edit]
[-] cli-32.exe
[edit]
[-] py31compat.py
[edit]
[-] py26compat.py
[edit]
[-] msvc.py
[edit]
[-] archive_util.py
[edit]
[-] py27compat.pyc
[edit]
[-] windows_support.pyc
[edit]
[-] monkey.py
[edit]
[-] version.py
[edit]
[-] lib2to3_ex.pyc
[edit]
[-] sandbox.pyc
[edit]
[-] gui-32.exe
[edit]
[-] unicode_utils.py
[edit]
[-] version.pyc
[edit]
[-] namespaces.py
[edit]
[-] package_index.pyc
[edit]
[-] extension.pyc
[edit]
[-] __init__.py
[edit]
[-] ssl_support.py
[edit]
[-] site-patch.pyc
[edit]
[+]
command
[-] lib2to3_ex.py
[edit]
[-] script (dev).tmpl
[edit]
[-] archive_util.pyc
[edit]
[-] extension.py
[edit]