summaryrefslogtreecommitdiff
path: root/src/saml2/s2repoze
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2015-05-27 00:11:32 -0700
committerClint Byrum <clint@fewbar.com>2015-05-28 09:50:57 -0700
commitc76eaf78fe8000efa951a3c75ede1a32beb3c9a4 (patch)
tree42e616826e50434a78c8949645255175819d1578 /src/saml2/s2repoze
parented5d61787ee45b7eb18631aa0d0eb15af75daf22 (diff)
downloadpysaml2-c76eaf78fe8000efa951a3c75ede1a32beb3c9a4.tar.gz
Fix more renamed modules/functions for py3
In doing so it was discovered that the 'implements' function has been replaced by a class decorator, which must be used in python3. Also commented out method arguments seem to expose internal py.test problems in python3. Removing them seems fine since we can look in revision history if we need to find the exact way it was used before.
Diffstat (limited to 'src/saml2/s2repoze')
-rw-r--r--src/saml2/s2repoze/plugins/sp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/saml2/s2repoze/plugins/sp.py b/src/saml2/s2repoze/plugins/sp.py
index 63d4f663..190caab2 100644
--- a/src/saml2/s2repoze/plugins/sp.py
+++ b/src/saml2/s2repoze/plugins/sp.py
@@ -13,11 +13,11 @@ import shelve
import traceback
import saml2
import six
-from urlparse import parse_qs, urlparse
+from six.moves.urllib.parse import parse_qs, urlparse
from saml2.samlp import Extensions
from saml2 import xmldsig as ds
-from StringIO import StringIO
+from six import StringIO
from paste.httpexceptions import HTTPSeeOther, HTTPRedirection
from paste.httpexceptions import HTTPNotImplemented
@@ -27,7 +27,7 @@ from paste.request import construct_url
from saml2.extension.pefim import SPCertEnc
from saml2.httputil import SeeOther
from saml2.client_base import ECP_SERVICE
-from zope.interface import implements
+from zope.interface import implementer
from repoze.who.interfaces import IChallenger, IIdentifier, IAuthenticator
from repoze.who.interfaces import IMetadataProvider
@@ -80,8 +80,8 @@ class ECP_response(object):
return [self.content]
+@implementer(IChallenger, IIdentifier, IAuthenticator, IMetadataProvider)
class SAML2Plugin(object):
- implements(IChallenger, IIdentifier, IAuthenticator, IMetadataProvider)
def __init__(self, rememberer_name, config, saml_client, wayf, cache,
sid_store=None, discovery="", idp_query_param="",