vendredi 8 mai 2015

How to correctly break a long line in Python?

How would I go about breaking the following line? The PEP8 guideline doesn't make it very clear to me.

confirmation_message = _('ORDER_CREATED: %(PROPERTY_1)s - %(PROPERTY_2)s - %(PROPERTY_3)s - %(PROPERTY_4)s')  % {'PROPERTY_1': order.lorem, 'PROPERTY_2': order.ipsum, 'PROPERTY_4': order.dolor, 'PROPERTY_5': order.sit}

Aucun commentaire:

Enregistrer un commentaire