[Python-modules-commits] [python-social-auth] 45/71: Formatter fixes for SAML to support Py2.6

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:14:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.14
in repository python-social-auth.

commit fcd11bf96e6ef2966bb1436df7f405e7144c0863
Author: Matthew Jones <mat at matburt.net>
Date:   Wed Nov 11 15:58:48 2015 -0500

    Formatter fixes for SAML to support Py2.6
---
 social/backends/saml.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/social/backends/saml.py b/social/backends/saml.py
index 198a574..206b26c 100644
--- a/social/backends/saml.py
+++ b/social/backends/saml.py
@@ -278,7 +278,7 @@ class SAMLAuth(BaseAuth):
         """
         idp = self.get_idp(response['idp_name'])
         uid = idp.get_user_permanent_id(response['attributes'])
-        return '{}:{}'.format(idp.name, uid)
+        return '{0}:{1}'.format(idp.name, uid)
 
     def auth_complete(self, *args, **kwargs):
         """
@@ -293,7 +293,7 @@ class SAMLAuth(BaseAuth):
         if errors or not auth.is_authenticated():
             reason = auth.get_last_error_reason()
             raise AuthFailed(
-                self, 'SAML login failed: {} ({})'.format(errors, reason)
+                self, 'SAML login failed: {0} ({1})'.format(errors, reason)
             )
 
         attributes = auth.get_attributes()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list