Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit c862b43

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f07aed6 commit c862b43

File tree

22 files changed

+19
-60
lines changed

22 files changed

+19
-60
lines changed

demo/settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# -*- coding: utf-8 -*-
21
# Django settings for demo project.
3-
from __future__ import unicode_literals
42

53
DEBUG = True
64

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# django-mail-factory documentation build configuration file, created by
43
# sphinx-quickstart on Wed Jan 23 17:31:52 2013.

mail_factory/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Django Mail Manager"""
32

43
import django

mail_factory/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MailFactoryConfig(AppConfig):
1111
verbose_name = _("Mail Factory")
1212

1313
def ready(self):
14-
super(MailFactoryConfig, self).ready()
14+
super().ready()
1515
for app in self.apps.get_app_configs():
1616
try:
1717
import_module(name=".mails", package=app.module.__name__)

mail_factory/contrib/auth/forms.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from django.contrib.auth.forms import PasswordResetForm as DjangoPasswordResetForm
42
from django.contrib.auth.tokens import default_token_generator
53
from django.contrib.sites.shortcuts import get_current_site

mail_factory/contrib/auth/mails.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from mail_factory import BaseMail
32

43

mail_factory/contrib/auth/views.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from django.contrib.auth.views import PasswordResetView as DjangoPasswordResetView
42
from django.http import HttpResponseRedirect
53

mail_factory/exceptions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
3-
41
class MissingMailContextParamException(Exception):
52
pass
63

mail_factory/factory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# -*- coding: utf-8 -*-
21
import base64
32

43
from . import exceptions
54
from .forms import MailForm
65

76

8-
class MailFactory(object):
7+
class MailFactory:
98
mail_form = MailForm
109
_registry = {} # Needed: django.utils.module_loading.autodiscover_modules.
1110
form_map = {}

mail_factory/forms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from django import forms
32

43

@@ -17,7 +16,7 @@ def __init__(self, *args, **kwargs):
1716
if "mail_class" in kwargs:
1817
self.mail_class = kwargs.pop("mail_class")
1918

20-
super(MailForm, self).__init__(*args, **kwargs)
19+
super().__init__(*args, **kwargs)
2120

2221
if self.mail_class is not None:
2322
ordering = []

0 commit comments

Comments
 (0)