[Python-projects] Weird pylint behaviors with cut strings
Alexandre Fayolle
alexandre.fayolle at logilab.fr
Thu Mar 12 15:58:22 CET 2009
Le Thursday 05 March 2009 22:35:20 chaica, vous avez écrit :
> I've got some weird behaviors with pylint and cut strings. I'm
> generating html so I'm using this kind of lines :
>
> self.titreprojet = '<tr><td colspan="10">\
> <img src="images/drapeau_vert.png" alt="Drapeau vert" />\
> <strong>%s</strong></td></tr>' % projet
I believe using the following notation should solve your problem:
self.titreprojet = ('<tr><td colspan="10">'
'<img src="images/drapeau_vert.png"'
'alt="Drapeau vert" />'
'<strong>%s</strong></td></tr>') % projet
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list