Furthermore, the method does not actually return a URL. The method behaves like the following: https://python.readthedocs.io/en/v2.7.2/library/urllib2.html#urllib2.urlopen
On Thu, 13 May 2021 at 15:16, sebb <seb...@gmail.com> wrote: > > The problem is that it is not clear whether the variable is supposed > to be used or not. > Is it misspelt? > > AIUI the convention for intentionally unused variables is to prefix > the name with an underscore, as this no longer triggers the warning in > PyLint > > On Thu, 13 May 2021 at 15:11, Daniel Shahaf <d...@daniel.shahaf.name> wrote: > > > > sebb wrote on Wed, May 12, 2021 at 11:49:41 +0100: > > > As the subject says > > > > Assuming opener.open() actually returns a URL, I don't see the problem > > here. The variable documents the return type for anyone who may want > > to extend the function.