Skip to content

Commit

Permalink
Update pydoc in parameters.py
Browse files Browse the repository at this point in the history
Fix of a couple of typing mistakes in pydoc text:
 - Usage of " to surround "application/x-form-urlencoded" instead of `` (as in the rest of the documentation)
 - "presence" written with "c"
  • Loading branch information
uy-rrodriguez authored and auvipy committed Jul 28, 2020
1 parent bda81b3 commit d54965b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oauthlib/oauth2/rfc6749/parameters.py
Expand Up @@ -161,7 +161,7 @@ def prepare_token_revocation_request(url, token, token_type_hint="access_token",
"""Prepare a token revocation request.
The client constructs the request by including the following parameters
using the "application/x-www-form-urlencoded" format in the HTTP request
using the ``application/x-www-form-urlencoded`` format in the HTTP request
entity-body:
:param token: REQUIRED. The token that the client wants to get revoked.
Expand Down Expand Up @@ -427,7 +427,7 @@ def parse_token_response(body, scope=None):


def validate_token_parameters(params):
"""Ensures token precence, token type, expiration and scope in params."""
"""Ensures token presence, token type, expiration and scope in params."""
if 'error' in params:
raise_from_error(params.get('error'), params)

Expand Down

0 comments on commit d54965b

Please sign in to comment.