pip.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)
New commits: commit 60b99d3c4a9e47e892b7d8466c867365920a83ce Author: Luke Macken lmacken@redhat.com Date: Sat Mar 14 15:07:42 2009 -0400
dos2unix-ify pip.py
diff --git a/pip.py b/pip.py index 172d96c..f331140 100755 --- a/pip.py +++ b/pip.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -import os -import errno +import os +import errno import stat import optparse import pkg_resources @@ -54,11 +54,11 @@ pypi_url = "http://pypi.python.org/simple" default_timeout = 15
# Choose a Git command based on platform. -if sys.platform == 'win32': - GIT_CMD = 'git.cmd' - BZR_CMD = 'bzr.bat' -else: - GIT_CMD = 'git' +if sys.platform == 'win32': + GIT_CMD = 'git.cmd' + BZR_CMD = 'bzr.bat' +else: + GIT_CMD = 'git' BZR_CMD = 'bzr'
## FIXME: this shouldn't be a module setting @@ -75,13 +75,13 @@ except pkg_resources.DistributionNotFound: # when running pip.py without installing version=None
-def rmtree_errorhandler(func, path, exc_info): - typ, val, tb = exc_info - if issubclass(typ, OSError) and val.errno == errno.EACCES: - os.chmod(path, stat.S_IWRITE) - func(path) - else: - raise typ, val, tb +def rmtree_errorhandler(func, path, exc_info): + typ, val, tb = exc_info + if issubclass(typ, OSError) and val.errno == errno.EACCES: + os.chmod(path, stat.S_IWRITE) + func(path) + else: + raise typ, val, tb
class VcsSupport(object): _registry = {} @@ -973,8 +973,8 @@ def restart_in_venv(venv, args): base = os.path.dirname(os.path.dirname(python)) file = __file__ if file.endswith('.pyc'): - file = file[:-1] - call_subprocess([python, file] + args + [base, '___VENV_RESTART___']) + file = file[:-1] + call_subprocess([python, file] + args + [base, '___VENV_RESTART___']) sys.exit(0) #~ os.execv(python, )