mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 20:26:34 +00:00
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>
This commit is contained in:
parent
64ca9a5130
commit
cfafcfa9af
@ -188,7 +188,7 @@ class BuildrootPackage():
|
|||||||
'md5_digest': None}]
|
'md5_digest': None}]
|
||||||
# In this case, we can't get the name of the downloaded file
|
# 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
|
# 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
|
self.metadata['info']['download_url']).path
|
||||||
# urlparse().path give something like
|
# urlparse().path give something like
|
||||||
# /path/to/file-version.tar.gz
|
# /path/to/file-version.tar.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user