diff --git a/app/scodoc/bonus_sport.py b/app/scodoc/bonus_sport.py index fc0230ada9..aa5a92bfac 100644 --- a/app/scodoc/bonus_sport.py +++ b/app/scodoc/bonus_sport.py @@ -25,7 +25,6 @@ # ############################################################################## -from __future__ import absolute_import from operator import mul import pprint diff --git a/app/scodoc/debug.py b/app/scodoc/debug.py index 2d74450798..456b136325 100644 --- a/app/scodoc/debug.py +++ b/app/scodoc/debug.py @@ -31,7 +31,6 @@ nt = sco_core.get_notes_cache(context).get_NotesTable(context, formsemestre_id) """ -from __future__ import absolute_import from __future__ import print_function import pdb # pylint: disable=unused-import import pprint diff --git a/app/scodoc/dutrules.py b/app/scodoc/dutrules.py index b9c8a524a1..ed281bb9eb 100644 --- a/app/scodoc/dutrules.py +++ b/app/scodoc/dutrules.py @@ -4,7 +4,6 @@ # # Command: ./csv2rules.py misc/parcoursDUT.csv # -from __future__ import absolute_import from app.scodoc.sco_codes_parcours import ( DUTRule, ADC, diff --git a/app/scodoc/gen_tables.py b/app/scodoc/gen_tables.py index 7e04c9d5a1..7f15dc8248 100644 --- a/app/scodoc/gen_tables.py +++ b/app/scodoc/gen_tables.py @@ -40,7 +40,6 @@ Par exemple, la clé '_css_row_class' spécifie le style CSS de la ligne. """ -from __future__ import absolute_import from __future__ import print_function import random from collections import OrderedDict diff --git a/app/scodoc/html_sco_header.py b/app/scodoc/html_sco_header.py index f1c1ba3efa..6dbaf53c1d 100644 --- a/app/scodoc/html_sco_header.py +++ b/app/scodoc/html_sco_header.py @@ -28,7 +28,6 @@ """HTML Header/Footer for ScoDoc pages """ -from __future__ import absolute_import import cgi from flask_login import current_user diff --git a/app/scodoc/html_sidebar.py b/app/scodoc/html_sidebar.py index 75e6f0a28c..12218d364c 100644 --- a/app/scodoc/html_sidebar.py +++ b/app/scodoc/html_sidebar.py @@ -28,7 +28,6 @@ """ Génération de la "sidebar" (marge gauche des pages HTML) """ -from __future__ import absolute_import from flask import url_for import app.scodoc.sco_utils as scu diff --git a/app/scodoc/htmlutils.py b/app/scodoc/htmlutils.py index 23e3279d44..81589e05aa 100644 --- a/app/scodoc/htmlutils.py +++ b/app/scodoc/htmlutils.py @@ -27,7 +27,6 @@ """Various HTML generation functions """ -from __future__ import absolute_import from flask import g, url_for import app.scodoc.sco_utils as scu diff --git a/app/scodoc/imageresize.py b/app/scodoc/imageresize.py index 122ee837af..252a6f6dce 100644 --- a/app/scodoc/imageresize.py +++ b/app/scodoc/imageresize.py @@ -1,6 +1,5 @@ """Simple image resize using PIL""" -from __future__ import absolute_import from PIL import Image as PILImage from cStringIO import StringIO diff --git a/app/scodoc/intervals.py b/app/scodoc/intervals.py index 8469c54558..9c9b59cc5a 100644 --- a/app/scodoc/intervals.py +++ b/app/scodoc/intervals.py @@ -4,7 +4,6 @@ # Code from http://code.activestate.com/recipes/457411/ -from __future__ import absolute_import from __future__ import print_function from bisect import bisect_left, bisect_right diff --git a/app/scodoc/listhistogram.py b/app/scodoc/listhistogram.py index ce25d00f95..3bd7a18923 100644 --- a/app/scodoc/listhistogram.py +++ b/app/scodoc/listhistogram.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import math diff --git a/app/scodoc/notes_cache.py b/app/scodoc/notes_cache.py index 18104eea05..17a92fd0d9 100644 --- a/app/scodoc/notes_cache.py +++ b/app/scodoc/notes_cache.py @@ -31,7 +31,6 @@ NOTA: inutilisable dans une instance Zope (can't pickle functions) """ -from __future__ import absolute_import from app.scodoc.notes_log import log diff --git a/app/scodoc/notes_log.py b/app/scodoc/notes_log.py index 9796bf2df6..471122695f 100644 --- a/app/scodoc/notes_log.py +++ b/app/scodoc/notes_log.py @@ -1,7 +1,6 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -from __future__ import absolute_import import os import re import inspect diff --git a/app/scodoc/notes_table.py b/app/scodoc/notes_table.py index 965859a12e..7efa9fdb46 100644 --- a/app/scodoc/notes_table.py +++ b/app/scodoc/notes_table.py @@ -27,7 +27,6 @@ """Calculs sur les notes et cache des resultats """ -from __future__ import absolute_import from types import StringType, FloatType import time import pdb diff --git a/app/views/absences.py b/app/views/absences.py index f712ea993a..295e2b0b23 100644 --- a/app/views/absences.py +++ b/app/views/absences.py @@ -46,7 +46,6 @@ L'API de plus bas niveau est en gros: """ -from __future__ import absolute_import import string import re import time diff --git a/app/views/entreprises.py b/app/views/entreprises.py index a1ed584043..9bfab7c4e6 100644 --- a/app/views/entreprises.py +++ b/app/views/entreprises.py @@ -32,7 +32,6 @@ Note: Code très ancien, porté de Zope/DTML, peu utilisable => Voir si des départements utilisent encore ce module et envisager de le supprimer. """ -from __future__ import absolute_import import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error import string import re diff --git a/app/views/essais.py b/app/views/essais.py index 8e056df0b2..1a49cadc4d 100644 --- a/app/views/essais.py +++ b/app/views/essais.py @@ -5,7 +5,6 @@ Module Essais: divers essais pour la migration vers Flask Emmanuel Viennet, 2021 """ -from __future__ import absolute_import from flask import g from flask import current_app diff --git a/app/views/notes.py b/app/views/notes.py index 5d1ccc6026..a6fdc14e5b 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -30,7 +30,6 @@ Module notes: issu de ScoDoc7 / ZNotes.py Emmanuel Viennet, 2021 """ -from __future__ import absolute_import import sys import time import datetime diff --git a/app/views/scodoc.py b/app/views/scodoc.py index c1654f52c6..c32f12dda9 100644 --- a/app/views/scodoc.py +++ b/app/views/scodoc.py @@ -30,7 +30,6 @@ Module main: page d'accueil, avec liste des départements Emmanuel Viennet, 2021 """ -from __future__ import absolute_import import flask from flask import render_template diff --git a/app/views/scolar.py b/app/views/scolar.py index 2b5260804b..0be944a514 100644 --- a/app/views/scolar.py +++ b/app/views/scolar.py @@ -29,7 +29,6 @@ Module scolar: issu de ScoDoc7 / ZScolar.py Emmanuel Viennet, 2021 """ -from __future__ import absolute_import import sys import traceback import time diff --git a/app/views/users.py b/app/views/users.py index 49f0f21abe..4d72c2936f 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -33,7 +33,6 @@ Vues s'appuyant sur auth et sco_users Emmanuel Viennet, 2021 """ -from __future__ import absolute_import import re import jaxml