Skip to content

Commit ce33d5f

Browse files
author
Roland Hedberg
committed
Fixed docstring errors
1 parent 0b9f5e5 commit ce33d5f

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

src/saml2/client.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,6 @@ def handle_logout_response(self, response):
254254
status["reason"], status["not_on_or_after"],
255255
status["sign"])
256256

257-
# ========================================================================
258-
# MUST use SOAP for
259-
# AssertionIDRequest, SubjectQuery, AuthnQuery, AttributeQuery or
260-
# AuthzDecisionQuery
261-
# ========================================================================
262-
263257
def _use_soap(self, destination, query_type, **kwargs):
264258
_create_func = getattr(self, "create_%s" % query_type)
265259
_response_func = getattr(self, "parse_%s_response" % query_type)
@@ -432,13 +426,14 @@ def handle_logout_request(self, request, name_id, binding, sign=False,
432426
:param sign: Whether the response will be signed or not
433427
:return: Keyword arguments which can be used to send the response
434428
what's returned follow different patterns for different bindings.
435-
If the binding is BINDIND_SOAP, what is returned looks like this:
436-
{
437-
"data": <the SOAP enveloped response>
438-
"url": "",
439-
'headers': [('content-type', 'application/soap+xml')]
440-
'method': "POST
441-
}
429+
If the binding is BINDIND_SOAP, what is returned looks like this::
430+
431+
{
432+
"data": <the SOAP enveloped response>
433+
"url": "",
434+
'headers': [('content-type', 'application/soap+xml')]
435+
'method': "POST
436+
}
442437
"""
443438
logger.info("logout request: %s" % request)
444439

src/saml2/metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ def _localized_name(val, klass):
113113

114114

115115
def do_organization_info(ava):
116-
""" decription of an organization in the configuration is
117-
a dictionary of keys and values, where the values might be tuples:
116+
"""
117+
Description of an organization in the configuration is
118+
a dictionary of keys and values, where the values might be tuples::
118119
119120
"organization": {
120121
"name": ("AB Exempel", "se"),

0 commit comments

Comments
 (0)