BIG UPD: migrate to python 3.10 and django 3.2
All checks were successful
buildbot/tox Build done.

This commit is contained in:
2022-06-07 16:07:08 +02:00
parent edd4050935
commit 8610e2a557
36 changed files with 192 additions and 91 deletions

View File

@@ -4,7 +4,7 @@ from django.core.exceptions import ValidationError
from django.utils.translation import gettext as _
class PasswordScoreValidator(object):
class PasswordScoreValidator:
def _get_score(self, password, user=None):
score = 0
char_counters = {}
@@ -98,7 +98,7 @@ class PasswordScoreValidator(object):
return text
class CustomWordlistPasswordValidator(object):
class CustomWordlistPasswordValidator:
context = 'the Sektion Karlsruhe'
words = (
u'dav',
@@ -132,7 +132,7 @@ class CustomWordlistPasswordValidator(object):
return text
class CharacterClassPasswordValidator(object):
class CharacterClassPasswordValidator:
def _is_enough_lower(self, password):
lower = re.sub(r'[^a-z]', '', password)
if len(lower) < self.minimum_lower: