diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 21:38:05 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 21:38:05 -0400 |
commit | 1841864071b4de404c74d6c1187b7752cd57691d (patch) | |
tree | e0c98faf542307d4a06ec9798e00e05fc007daa1 /passlib/ext | |
parent | 73ab1733ebe4813063ecf96ba9fca028392db7ff (diff) | |
download | passlib-1841864071b4de404c74d6c1187b7752cd57691d.tar.gz |
python compat cleanup -- use magic super() calls
Diffstat (limited to 'passlib/ext')
-rw-r--r-- | passlib/ext/django/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py index ab508a3..001df4e 100644 --- a/passlib/ext/django/utils.py +++ b/passlib/ext/django/utils.py @@ -165,7 +165,7 @@ class DjangoTranslator(object): #============================================================================= def __init__(self, context=None, **kwds): - super(DjangoTranslator, self).__init__(**kwds) + super().__init__(**kwds) if context is not None: self.context = context @@ -440,7 +440,7 @@ class DjangoContextAdapter(DjangoTranslator): # init parent, filling in default context object if context is None: context = CryptContext() - super(DjangoContextAdapter, self).__init__(context=context, **kwds) + super().__init__(context=context, **kwds) # setup user category if get_user_category: @@ -477,7 +477,7 @@ class DjangoContextAdapter(DjangoTranslator): reset_hashers(setting="PASSWORD_HASHERS") # reset internal caches - super(DjangoContextAdapter, self).reset_hashers() + super().reset_hashers() #============================================================================= # django hashers helpers -- hasher lookup |