scanpypi: fix Py2/3 conversion leftover
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 26 Feb 2018 13:01:17 +0000 (14:01 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 26 Feb 2018 19:54:00 +0000 (20:54 +0100)
Use urlparse from six package.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
utils/scanpypi

index 12bfc24e108897bea4629ddcfbcdbe63e85f5fa1..1720c0c0517219d99ccb18a394396b698b928628 100755 (executable)
@@ -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