1
0
Fork 0

Corretto urlopen.

This commit is contained in:
Emiliano Vavassori 2022-03-19 22:23:11 +01:00
parent c1f3431fc1
commit 462bce15ad
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Build():
# Let's start with defining which files are to be downloaded.
# 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') ]
maintarball = self.__tarballs__[0]
main_arr = maintarball.split('_')