From dc8dc7d05d54bd5502295601c01b557caab92a76 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 18 Jun 2020 22:53:17 -0700 Subject: Remove unnecessary compatibility shims for Python 2 (#498) As the project is Python 3 only, can remove the compatibility shims in compat.py. Type checking has been simplified where it can: - str is iterable - bytes is iterable - use isinstance instead of issubclass The remaining function bytes_from_int() has been moved to utils.py. --- docs/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/api.rst') diff --git a/docs/api.rst b/docs/api.rst index 3f66173..6ca0b62 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -52,7 +52,7 @@ API Reference Use ``verify_exp`` instead - :param str|iterable audience: optional, the value for ``verify_aud`` check + :param iterable audience: optional, the value for ``verify_aud`` check :param str issuer: optional, the value for ``verify_iss`` check :param int|float leeway: a time margin in seconds for the expiration check :param bool verify_expiration: -- cgit v1.2.1