Commit de219ed3 authored by Reinout van Rees's avatar Reinout van Rees

Renamed 'tmp' to 'tmp_path'

It was originally called 'path'
parent c7041163
...@@ -36,7 +36,7 @@ except ImportError: ...@@ -36,7 +36,7 @@ except ImportError:
from urlparse import urlunparse from urlparse import urlunparse
import urllib2 import urllib2
def urlretrieve(url, tmp): def urlretrieve(url, tmp_path):
"""Work around Python issue 24599 includig basic auth support """Work around Python issue 24599 includig basic auth support
""" """
scheme, netloc, path, params, query, frag = urlparse(url) scheme, netloc, path, params, query, frag = urlparse(url)
...@@ -50,9 +50,9 @@ except ImportError: ...@@ -50,9 +50,9 @@ except ImportError:
else: else:
req = urllib2.Request(url) req = urllib2.Request(url)
url_obj = urllib2.urlopen(req) url_obj = urllib2.urlopen(req)
with open(tmp, 'wb') as fp: with open(tmp_path, 'wb') as fp:
fp.write(url_obj.read()) fp.write(url_obj.read())
return tmp, url_obj.info() return tmp_path, url_obj.info()
from zc.buildout.easy_install import realpath from zc.buildout.easy_install import realpath
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment