Remove the UTF-8 coding header

This commit is contained in:
Jérôme Lebleu
2020-01-07 10:16:54 +01:00
parent 74d66c00a0
commit 369d05e1c3
234 changed files with 0 additions and 413 deletions
-1
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8
from modoboa.core.commands import handle_command_line
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Modoboa - Mail hosting made simple."""
from pkg_resources import DistributionNotFound, get_distribution
-2
View File
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-
default_app_config = "modoboa.admin.apps.AdminConfig"
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin API."""
from django import http
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Modoboa admin settings."""
import os
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""AppConfig for admin."""
from django.apps import AppConfig
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin constants."""
from django.utils.translation import ugettext_lazy as _
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""
Fixtures factories.
"""
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from .account import (
AccountForm, AccountFormGeneral, AccountFormMail, AccountPermissionsForm,
AccountWizard
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Forms related to accounts management."""
from collections import OrderedDict
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Forms related to aliases management."""
from collections import OrderedDict
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Forms related to domains management."""
from functools import reduce
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Forms related to forwards management."""
from django import forms
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Forms related to import operations."""
from django import forms
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Django signal handlers for admin."""
from django.contrib.contenttypes.models import ContentType
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Internal library for admin."""
import ipaddress
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""A management command to apply mailbox operations."""
import logging
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Modoboa main management command."""
from subcommand.base import SubcommandCommand
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Django management command to export admin objects."""
import sys
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Django management command to import admin objects."""
import io
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Management command to create DKIM keys."""
import os
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Management command to check defined domains."""
import ipaddress
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Management command to check and fix known problems."""
from django.conf import settings
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models, migrations
from django.conf import settings
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models, migrations
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import migrations, models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-14 09:07
from django.db import migrations, models
import django.db.models.deletion
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-10-26 08:03
from django.db import migrations, models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-11-04 18:00
from django.db import migrations, models
import django.utils.timezone
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-11-04 18:15
from django.db import migrations, models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-02-06 06:13
from django.db import migrations, models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-15 08:48
from django.db import migrations
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-15 12:28
from django.db import migrations, models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-12-20 14:17
from django.db import migrations, models
import django.db.models.deletion
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-12 15:58
from django.db import migrations, models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-24 23:11
from django.db import migrations, models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-10-17 14:28
from django.db import migrations, models
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin models."""
from .alias import Alias, AliasRecipient
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Models related to aliases management."""
import hashlib
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Base admin models."""
from django.contrib.contenttypes.fields import GenericRelation
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Models related to domains management."""
import datetime
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Models related to domain aliases management."""
from reversion import revisions as reversion
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Models related to mailboxes management."""
import os
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""MX records storage."""
import datetime
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Map file definitions for postfix."""
class DomainsMap(object):
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin serializers."""
from django.conf import settings
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Modoboa admin signals."""
import django.dispatch
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin extension tags."""
from functools import reduce
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from unittest import skipIf
from django.test import override_settings
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from django.urls import reverse
from modoboa.core.models import User
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin API related tests."""
import copy
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Domain related test cases."""
import os
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from django.urls import reverse
from modoboa.lib.tests import ModoTestCase
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Export related test cases."""
import sys
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import os
from unittest import mock
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Management command tests."""
import os
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Test map files generation."""
import os
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""DNSBL related tests."""
from unittest import mock
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from django.urls import reverse
from modoboa.core.models import User
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Repair command tests"""
from django.core import management
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""User related tests."""
from django.urls import reverse
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Test utilities."""
import socket
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin urls."""
from django.conf.urls import url
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Admin API urls."""
from rest_framework import routers
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Shortcuts."""
from .alias import AliasDetailView
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Alias related views."""
from reversion import revisions as reversion
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""DNSBL related views."""
from django.contrib.auth import mixins as auth_mixins
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Domain related views."""
from functools import reduce
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Export related views."""
from rfc6266 import build_header
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Identity related views."""
from reversion import revisions as reversion
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Import related views."""
import io
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""SimpleUsers views."""
from reversion import revisions as reversion
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""App config for core."""
default_app_config = "modoboa.core.apps.CoreConfig"
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from django import forms
from django.conf import settings
from django.contrib.auth import password_validation
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Core config for admin."""
from django.apps import AppConfig
-2
View File
@@ -1,4 +1,2 @@
# -*- coding: utf-8 -*-
# Import these to force registration of checks
from . import settings_checks # NOQA:F401
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from django.conf import settings
from django.core.checks import Warning, register
from django.utils.translation import ugettext as _
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import argparse
import os
import sys
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""A shortcut to deploy a fresh modoboa instance."""
import codecs
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import sys
from . import Command
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Core application constants."""
from django.utils.translation import ugettext_lazy
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Custom context processors."""
from functools import reduce
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# Development settings
import os
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Extension management."""
from django.conf import settings
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Factories for core application."""
import factory
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Core forms."""
from django import forms
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Modoboa core signal handlers."""
import logging
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import logging
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Inactive accounts cleanup tool."""
from dateutil.relativedelta import relativedelta
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import datetime
import logging
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Management command to communicate with public API."""
from django.core.management.base import BaseCommand, CommandError
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Management command to generate/update postfix map files."""
import copy
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""A management command to load Modoboa initial data:
* Create a default super admin if none exists
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""
A simple managemenent command to update the default site.
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Core middlewares."""
from django.utils.deprecation import MiddlewareMixin
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models, migrations
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models, migrations
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models, migrations

Some files were not shown because too many files have changed in this diff Show More