From b6d1ee6aa8784394c7a6765be4b10891777c1ce4 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 7 Feb 2021 00:57:26 +0100 Subject: [PATCH] =?UTF-8?q?On=20enl=C3=A8ve=20`coding=20utf-8`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- avisstage/api.py | 2 -- avisstage/management/commands/nettoie_lieux.py | 1 - avisstage/management/commands/nettoie_stages.py | 1 - avisstage/management/commands/supprime_lieu.py | 1 - avisstage/migrations/0001_initial.py | 2 -- avisstage/migrations/0002_auto_20171002_2243.py | 2 -- avisstage/statics.py | 2 -- avisstage/templatetags/avisstage_tags.py | 1 - avisstage/tests.py | 1 - avisstage/views.py | 2 -- avisstage/views_search.py | 2 -- scripts/initalize_allauth.py | 3 +-- 12 files changed, 1 insertion(+), 19 deletions(-) diff --git a/avisstage/api.py b/avisstage/api.py index 4d53f95..4618625 100644 --- a/avisstage/api.py +++ b/avisstage/api.py @@ -1,5 +1,3 @@ -# coding: utf-8 - from tastypie import fields, utils from tastypie.authentication import SessionAuthentication from tastypie.resources import ModelResource diff --git a/avisstage/management/commands/nettoie_lieux.py b/avisstage/management/commands/nettoie_lieux.py index 6d19fe7..027ac78 100644 --- a/avisstage/management/commands/nettoie_lieux.py +++ b/avisstage/management/commands/nettoie_lieux.py @@ -1,4 +1,3 @@ -# coding: utf-8 from django.core.management.base import BaseCommand, CommandError from django.db.models import Count diff --git a/avisstage/management/commands/nettoie_stages.py b/avisstage/management/commands/nettoie_stages.py index ccb3286..e2a6640 100644 --- a/avisstage/management/commands/nettoie_stages.py +++ b/avisstage/management/commands/nettoie_stages.py @@ -1,4 +1,3 @@ -# coding: utf-8 from django.core.management.base import BaseCommand, CommandError from django.db.models import Count diff --git a/avisstage/management/commands/supprime_lieu.py b/avisstage/management/commands/supprime_lieu.py index 91d328b..2ebde67 100644 --- a/avisstage/management/commands/supprime_lieu.py +++ b/avisstage/management/commands/supprime_lieu.py @@ -1,4 +1,3 @@ -# coding: utf-8 from django.core.management.base import BaseCommand, CommandError from django.db.models import Count diff --git a/avisstage/migrations/0001_initial.py b/avisstage/migrations/0001_initial.py index 85df322..5e37710 100644 --- a/avisstage/migrations/0001_initial.py +++ b/avisstage/migrations/0001_initial.py @@ -1,6 +1,4 @@ -# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-20 17:45 -from __future__ import unicode_literals import taggit_autosuggest.managers import tinymce.models diff --git a/avisstage/migrations/0002_auto_20171002_2243.py b/avisstage/migrations/0002_auto_20171002_2243.py index f2b0136..8bab455 100644 --- a/avisstage/migrations/0002_auto_20171002_2243.py +++ b/avisstage/migrations/0002_auto_20171002_2243.py @@ -1,6 +1,4 @@ -# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-10-02 20:43 -from __future__ import unicode_literals import tinymce.models diff --git a/avisstage/statics.py b/avisstage/statics.py index 6a3c10f..76858a3 100644 --- a/avisstage/statics.py +++ b/avisstage/statics.py @@ -1,5 +1,3 @@ -# coding: utf-8 - DEPARTEMENTS_DEFAUT = ( ("phy", u"Physique"), ("maths", u"Maths"), diff --git a/avisstage/templatetags/avisstage_tags.py b/avisstage/templatetags/avisstage_tags.py index eb31cc5..f95217f 100644 --- a/avisstage/templatetags/avisstage_tags.py +++ b/avisstage/templatetags/avisstage_tags.py @@ -1,4 +1,3 @@ -# coding: utf-8 import re from django import template diff --git a/avisstage/tests.py b/avisstage/tests.py index 559b50b..692dbe7 100644 --- a/avisstage/tests.py +++ b/avisstage/tests.py @@ -13,7 +13,6 @@ from .models import AvisLieu, Lieu, Normalien, Stage, StageMatiere, User class ExperiENSTestCase(TestCase): - # Dummy database def setUp(self): diff --git a/avisstage/views.py b/avisstage/views.py index ce26aa2..4dd6caf 100644 --- a/avisstage/views.py +++ b/avisstage/views.py @@ -1,5 +1,3 @@ -# coding: utf-8 - import math import random from collections import Counter, defaultdict diff --git a/avisstage/views_search.py b/avisstage/views_search.py index 826ebc5..af95b2e 100644 --- a/avisstage/views_search.py +++ b/avisstage/views_search.py @@ -1,5 +1,3 @@ -# coding: utf-8 - import json import logging from datetime import date diff --git a/scripts/initalize_allauth.py b/scripts/initalize_allauth.py index 8b18e6c..1e0f515 100644 --- a/scripts/initalize_allauth.py +++ b/scripts/initalize_allauth.py @@ -1,12 +1,11 @@ import sys +from collections import defaultdict from allauth.account.models import EmailAddress from allauth.socialaccount.models import SocialAccount from avisstage.models import Normalien -from collections import defaultdict - accounts = SocialAccount.objects.all().prefetch_related("user") profils = Normalien.objects.all() addresses = EmailAddress.objects.all()