aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yegor Yefremov <yegorslists@googlemail.com>2018-02-26 14:01:17 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-02-26 20:54:00 +0100
commitcfafcfa9af4ee04c563d3c682d2001a8516a866c (patch)
tree349656b2efa5dd7e6eae3fbd366f412605bcec07
parent64ca9a51306d10862e3c04d7e9b1ee99557a9e4d (diff)
downloadbuildroot-cfafcfa9af4ee04c563d3c682d2001a8516a866c.tar.gz
buildroot-cfafcfa9af4ee04c563d3c682d2001a8516a866c.tar.bz2
scanpypi: fix Py2/3 conversion leftover
Use urlparse from six package. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-xutils/scanpypi2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/scanpypi b/utils/scanpypi
index 12bfc24e10..1720c0c051 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -188,7 +188,7 @@ class BuildrootPackage():
'md5_digest': None}]
# In this case, we can't get the name of the downloaded file
# from the pypi api, so we need to find it, this should work
- urlpath = urllib2.urlparse.urlparse(
+ urlpath = six.moves.urllib.parse.urlparse(
self.metadata['info']['download_url']).path
# urlparse().path give something like
# /path/to/file-version.tar.gz