Update Py3 compat

This commit is contained in:
Basile Clement 2016-07-15 00:02:56 +02:00
parent aa6e5e5479
commit 210c6d7712
27 changed files with 155 additions and 95 deletions

View file

@ -1,5 +1,7 @@
# coding: utf-8
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from django.shortcuts import render, get_object_or_404, redirect
@ -183,12 +185,12 @@ def _traitement_other_preparing(request, demande):
if choice == -1:
continue
if choice not in candidates:
errors.append(u"Choix invalide pour la proposition %d"
errors.append("Choix invalide pour la proposition %d"
"en %s" % (choice_id + 1, matiere))
continue
user = candidates[choice]
if user in proposals[matiere]:
errors.append(u"La proposition %d en %s est un doublon"
errors.append("La proposition %d en %s est un doublon"
% (choice_id + 1, matiere))
continue
proposals[matiere].append(user)