Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
de219ed3
Commit
de219ed3
authored
Apr 06, 2016
by
Reinout van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed 'tmp' to 'tmp_path'
It was originally called 'path'
parent
c7041163
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/zc/buildout/download.py
src/zc/buildout/download.py
+3
-3
No files found.
src/zc/buildout/download.py
View file @
de219ed3
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment