Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/pip/utils
usr
/
lib
/
python2.6
/
site-packages
/
pip
/
utils
/
📁
..
📄
__init__.py
(25.53 KB)
📄
__init__.pyc
(29.02 KB)
📄
__init__.pyo
(28.96 KB)
📄
appdirs.py
(8.96 KB)
📄
appdirs.pyc
(8.89 KB)
📄
appdirs.pyo
(8.89 KB)
📄
build.py
(1.28 KB)
📄
build.pyc
(1.69 KB)
📄
build.pyo
(1.69 KB)
📄
deprecation.py
(2.1 KB)
📄
deprecation.pyc
(1.88 KB)
📄
deprecation.pyo
(1.88 KB)
📄
filesystem.py
(899 B)
📄
filesystem.pyc
(792 B)
📄
filesystem.pyo
(792 B)
📄
logging.py
(3.23 KB)
📄
logging.pyc
(4.74 KB)
📄
logging.pyo
(4.74 KB)
📄
outdated.py
(5.37 KB)
📄
outdated.pyc
(5.14 KB)
📄
outdated.pyo
(5.14 KB)
📄
ui.py
(6.62 KB)
📄
ui.pyc
(6.95 KB)
📄
ui.pyo
(6.95 KB)
Editing: build.py
from __future__ import absolute_import import os.path import tempfile from pip.utils import rmtree class BuildDirectory(object): def __init__(self, name=None, delete=None): # If we were not given an explicit directory, and we were not given an # explicit delete option, then we'll default to deleting. if name is None and delete is None: delete = True if name is None: # We realpath here because some systems have their default tmpdir # symlinked to another directory. This tends to confuse build # scripts, so we canonicalize the path by traversing potential # symlinks here. name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-")) # If we were not given an explicit directory, and we were not given # an explicit delete option, then we'll default to deleting. if delete is None: delete = True self.name = name self.delete = delete def __repr__(self): return "<{} {!r}>".format(self.__class__.__name__, self.name) def __enter__(self): return self.name def __exit__(self, exc, value, tb): self.cleanup() def cleanup(self): if self.delete: rmtree(self.name)
Upload File
Create Folder