Projet

Général

Profil

0001-python3-discard-tabs-in-python-source-files-31158.patch

Paul Marillonnet, 06 mars 2019 19:13

Télécharger (3,53 ko)

Voir les différences:

Subject: [PATCH] python3: discard tabs in python source files (#31158)

 src/authentic2/idp/saml/saml2_endpoints.py                | 4 ++--
 src/authentic2/registration_backend/forms.py              | 2 +-
 src/authentic2/registration_backend/urls.py               | 2 +-
 src/authentic2/saml/migrations/0008_alter_foreign_keys.py | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
src/authentic2/idp/saml/saml2_endpoints.py
704 704
            'to function %s' % decision[0].__name__)
705 705
        dic = decision[1]
706 706
        if dic and 'authz' in dic:
707
	    logger.info('decision is %s', dic['authz'])
707
            logger.info('decision is %s', dic['authz'])
708 708
            if 'message' in dic:
709
		logger.info(u'with message %s', unicode(dic['message']))
709
                logger.info(u'with message %s', unicode(dic['message']))
710 710
            if not dic['authz']:
711 711
                logger.info('access denied by an external function')
712 712
                access_granted = False
src/authentic2/registration_backend/forms.py
128 128
        if 'password1' in self.cleaned_data and 'password2' in self.cleaned_data:
129 129
            if self.cleaned_data['password1'] != self.cleaned_data['password2']:
130 130
                raise ValidationError(_("The two password fields didn't match."))
131
	    self.instance.set_password(self.cleaned_data['password1'])
131
            self.instance.set_password(self.cleaned_data['password1'])
132 132
        return self.cleaned_data
133 133

  
134 134

  
src/authentic2/registration_backend/urls.py
7 7

  
8 8
urlpatterns = [
9 9
    url(r'^activate/(?P<registration_token>[\w: -]+)/$',
10
	registration_completion, name='registration_activate'),
10
        registration_completion, name='registration_activate'),
11 11
    url(r'^register/$',
12 12
        RegistrationView.as_view(),
13 13
        name='registration_register'),
src/authentic2/saml/migrations/0008_alter_foreign_keys.py
32 32
            a.save()
33 33
    for fed in LibertyFederation.objects.all():
34 34
        if fed.idp:
35
	    lp = LibertyProvider.objects.get(old_id=fed.idp)
35
            lp = LibertyProvider.objects.get(old_id=fed.idp)
36 36
            fed.idp = lp.service_ptr_id
37 37
        if fed.sp:
38
	    lp = LibertyProvider.objects.get(old_id=fed.sp)
38
            lp = LibertyProvider.objects.get(old_id=fed.sp)
39 39
            fed.sp = lp.service_ptr_id
40 40
        fed.save()
41 41

  
42
-