From: Yegor Yefremov Date: Mon, 26 Feb 2018 13:01:17 +0000 (+0100) Subject: scanpypi: fix Py2/3 conversion leftover X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfafcfa9af4ee04c563d3c682d2001a8516a866c;p=buildroot.git scanpypi: fix Py2/3 conversion leftover Use urlparse from six package. Signed-off-by: Yegor Yefremov Signed-off-by: Peter Korsgaard --- 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