mardi 25 avril 2017

Easier way to write this adhering to pylint

Is there a better way to write something like this ?

 if 'legal' in href_link or 'disclaimer' in href_link or 'contact' in href_link or 'faq' in href_link or 'terms' in href_link or 'log' in href_link:
        continue

preferably in a single line...Where do I look?

Aucun commentaire:

Enregistrer un commentaire