From 9199a01f94dc7f8790eba2958271a9aa188071c3 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 9 Jul 2021 19:07:47 +0200 Subject: [PATCH] removed unnecessary from __future__ import absolute_import --- app/scodoc/bonus_sport.py | 1 - app/scodoc/debug.py | 1 - app/scodoc/dutrules.py | 1 - app/scodoc/gen_tables.py | 1 - app/scodoc/html_sco_header.py | 1 - app/scodoc/html_sidebar.py | 1 - app/scodoc/htmlutils.py | 1 - app/scodoc/imageresize.py | 1 - app/scodoc/intervals.py | 1 - app/scodoc/listhistogram.py | 1 - app/scodoc/notes_cache.py | 1 - app/scodoc/notes_log.py | 1 - app/scodoc/notes_table.py | 1 - app/views/absences.py | 1 - app/views/entreprises.py | 1 - app/views/essais.py | 1 - app/views/notes.py | 1 - app/views/scodoc.py | 1 - app/views/scolar.py | 1 - app/views/users.py | 1 - 20 files changed, 20 deletions(-) diff --git a/app/scodoc/bonus_sport.py b/app/scodoc/bonus_sport.py index fc0230ad..aa5a92bf 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 2d744507..456b1363 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 b9c8a524..ed281bb9 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 7e04c9d5..7f15dc82 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 f1c1ba3e..6dbaf53c 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 75e6f0a2..12218d36 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 23e3279d..81589e05 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 122ee837..252a6f6d 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 8469c545..9c9b59cc 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 ce25d00f..3bd7a189 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 18104eea..17a92fd0 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 9796bf2d..47112269 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 965859a1..7efa9fdb 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 f712ea99..295e2b0b 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 a1ed5840..9bfab7c4 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 8e056df0..1a49cadc 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 5d1ccc60..a6fdc14e 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 c1654f52..c32f12dd 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 2b526080..0be944a5 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 49f0f21a..4d72c293 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