diff --git a/build.py b/build.py index be4bced..23a1a69 100644 --- a/build.py +++ b/build.py @@ -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('_')