Corretto urlopen.
This commit is contained in:
parent
c1f3431fc1
commit
462bce15ad
2
build.py
2
build.py
@ -29,7 +29,7 @@ class Build():
|
|||||||
|
|
||||||
# Let's start with defining which files are to be downloaded.
|
# Let's start with defining which files are to be downloaded.
|
||||||
# Let's explore the remote folder.
|
# Let's explore the remote folder.
|
||||||
contents = etree.HTML(urllib.request.openurl(self.__url__).read()).xpath("//td/a")
|
contents = etree.HTML(urllib.request.urlopen(self.__url__).read()).xpath("//td/a")
|
||||||
self.__tarballs__ = [ x.text for x in contents if x.text.endswith('tar.gz') ]
|
self.__tarballs__ = [ x.text for x in contents if x.text.endswith('tar.gz') ]
|
||||||
maintarball = self.__tarballs__[0]
|
maintarball = self.__tarballs__[0]
|
||||||
main_arr = maintarball.split('_')
|
main_arr = maintarball.split('_')
|
||||||
|
Reference in New Issue
Block a user