diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-05-12 13:43:13 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-05-12 13:43:32 +0300 |
commit | b8c9c2528b9da33e08f1778f90610554a3f04743 (patch) | |
tree | 6a173e56b1c5629c7ae2be80567818a26d7284f8 /src/saml2/s2repoze | |
parent | 831e06e87e3f5514b1f626f6f5f5899b61920e1d (diff) | |
download | pysaml2-b8c9c2528b9da33e08f1778f90610554a3f04743.tar.gz |
Fix call to urlencodepylint-fixes
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'src/saml2/s2repoze')
-rw-r--r-- | src/saml2/s2repoze/plugins/formswithhidden.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saml2/s2repoze/plugins/formswithhidden.py b/src/saml2/s2repoze/plugins/formswithhidden.py index 426ebb00..7b813211 100644 --- a/src/saml2/s2repoze/plugins/formswithhidden.py +++ b/src/saml2/s2repoze/plugins/formswithhidden.py @@ -1,4 +1,4 @@ -import urllib +from six.moves.urllib.parse import urlencode from paste.httpheaders import CONTENT_LENGTH from paste.httpheaders import CONTENT_TYPE @@ -71,7 +71,7 @@ class FormHiddenPlugin(FormPlugin): return None del query[self.login_form_qs] query.update(qinfo) - environ["QUERY_STRING"] = urllib.urlencode(query) + environ["QUERY_STRING"] = urlencode(query) environ["repoze.who.application"] = HTTPFound(construct_url(environ)) credentials = {"login": login, "password": password} max_age = form.get("max_age", None) |