Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/oauthlib/__init__.py: 80%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 06:22 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 06:22 +0000
1"""
2 oauthlib
3 ~~~~~~~~
5 A generic, spec-compliant, thorough implementation of the OAuth
6 request-signing logic.
8 :copyright: (c) 2019 by The OAuthlib Community
9 :license: BSD, see LICENSE for details.
10"""
11import logging
12from logging import NullHandler
14__author__ = 'The OAuthlib Community'
15__version__ = '3.2.2'
17logging.getLogger('oauthlib').addHandler(NullHandler())
19_DEBUG = False
21def set_debug(debug_val):
22 """Set value of debug flag
24 :param debug_val: Value to set. Must be a bool value.
25 """
26 global _DEBUG
27 _DEBUG = debug_val
29def get_debug():
30 """Get debug mode value.
32 :return: `True` if debug mode is on, `False` otherwise
33 """
34 return _DEBUG