Projet

Général

Profil

0001-misc-apply-black-52638.patch

Serghei Mihai (congés, retour 15/05), 02 avril 2021 11:17

Télécharger (998 octets)

Voir les différences:

Subject: [PATCH] misc: apply black (#52638)

 src/authentic2/utils/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/authentic2/utils/__init__.py
1151 1151

  
1152 1152

  
1153 1153
def simulate_authentication(request, user, method, backend=None, service=None, **kwargs):
1154
    '''Simulate a normal login by eventually forcing a backend attribute on the
1155
       user instance'''
1154
    """Simulate a normal login by eventually forcing a backend attribute on the
1155
    user instance"""
1156 1156
    if not getattr(user, 'backend', None) and not backend:
1157 1157
        backend = 'authentic2.backends.models_backend.ModelBackend'
1158 1158
    if backend:
1159
-