Fix comparisons to None
Diff checked manually. autopep8 -a -ir -j2 --select=E711 . This required the "agressive" option because it can change code behavior.
This commit is contained in:
parent
7094931c92
commit
e0542c2e4a
14 changed files with 27 additions and 27 deletions
|
|
@ -40,7 +40,7 @@ class ArtistResultsPage(BasePage):
|
|||
|
||||
class ArtistSongsPage(BasePage):
|
||||
def iter_lyrics(self,artist=None):
|
||||
if artist == None:
|
||||
if artist is None:
|
||||
artist = self.parser.select(self.document.getroot(),'head > title',1).text.replace('Paroles ','')
|
||||
for link in self.parser.select(self.document.getroot(),'div#albums a'):
|
||||
href = link.attrib.get('href','')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue