From 6142e6ef34b79b8b2bed1175c8adacc2cf3b27a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 24 Aug 2015 21:03:06 +0200 Subject: [PATCH] =?UTF-8?q?PEP8=20pour=20la=20m=C3=A9thode=20total=20de=20?= =?UTF-8?q?facture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- objets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objets.py b/objets.py index 0088a0f..0053b06 100644 --- a/objets.py +++ b/objets.py @@ -1547,9 +1547,9 @@ class facture(CransLdapObject): return super(facture, self).__setitem__(attr, value) def total(self): - total=0 + total = 0 for article in self["article"]: - total+=int(article['nombre'])*float(article['pu']) + total += int(article['nombre'])*float(article['pu']) return total def crediter(self):