summaryrefslogtreecommitdiff
path: root/virtualenv_embedded
diff options
context:
space:
mode:
authorMarcus Smith <qwcode@gmail.com>2013-01-23 19:49:21 -0800
committerMarcus Smith <qwcode@gmail.com>2013-01-23 19:49:21 -0800
commit29cb45ea7be02218df36dff41242fe7790cb4007 (patch)
tree7d0b9f6ef64bd11c459867bba6b0455d881ae2f8 /virtualenv_embedded
parentbcbc51d1fc60e37ac79e786309d550ec39618951 (diff)
downloadvirtualenv-29cb45ea7be02218df36dff41242fe7790cb4007.tar.gz
upgrade to distribute-0.6.34
Diffstat (limited to 'virtualenv_embedded')
-rw-r--r--virtualenv_embedded/distribute_setup.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/virtualenv_embedded/distribute_setup.py b/virtualenv_embedded/distribute_setup.py
index f8869e4..a1cc2a1 100644
--- a/virtualenv_embedded/distribute_setup.py
+++ b/virtualenv_embedded/distribute_setup.py
@@ -49,7 +49,7 @@ except ImportError:
args = [quote(arg) for arg in args]
return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
-DEFAULT_VERSION = "0.6.32"
+DEFAULT_VERSION = "0.6.34"
DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
SETUPTOOLS_FAKED_VERSION = "0.6c11"
@@ -239,7 +239,9 @@ def _no_sandbox(function):
def _patch_file(path, content):
"""Will backup the file then patch it"""
- existing_content = open(path).read()
+ f = open(path)
+ existing_content = f.read()
+ f.close()
if existing_content == content:
# already patched
log.warn('Already patched.')
@@ -257,7 +259,10 @@ _patch_file = _no_sandbox(_patch_file)
def _same_content(path, content):
- return open(path).read() == content
+ f = open(path)
+ existing_content = f.read()
+ f.close()
+ return existing_content == content
def _rename_path(path):