PEP8: Forgot a few binops

This commit is contained in:
Théophile Bastian 2016-07-09 23:26:02 +01:00
parent 6d68f6638f
commit 483ddf0f86
6 changed files with 17 additions and 18 deletions

View file

@ -186,8 +186,8 @@ def _traitement_other_preparing(request, demande):
continue
user = candidates[choice]
if user in proposals[matiere]:
errors.append(u"La proposition %d en %s est un doublon" %
(choice_id + 1, matiere))
errors.append(u"La proposition %d en %s est un doublon"
% (choice_id + 1, matiere))
continue
proposals[matiere].append(user)
attribdata[matiere.id].append(user.id)
@ -198,10 +198,10 @@ def _traitement_other_preparing(request, demande):
if not proposals[matiere]:
errors.append(u"Aucune proposition pour %s" % (matiere,))
elif len(proposals[matiere]) < 3:
errors.append(u"Seulement %d proposition%s pour %s" %
(len(proposals[matiere]), "s"
if len(proposals[matiere]) > 1 else "",
matiere))
errors.append(u"Seulement %d proposition%s pour %s"
% (len(proposals[matiere]),
"s" if len(proposals[matiere]) > 1 else "",
matiere))
else:
unsatisfied.append(matiere)
return _finalize_traitement(request, demande, proposals, proposed_for,