Skip to content

oauthlib

oauthlib ~~~~~~~~

A generic, spec-compliant, thorough implementation of the OAuth request-signing logic.

:copyright: (c) 2019 by The OAuthlib Community :license: BSD, see LICENSE for details.

get_debug()

Get debug mode value.

:return: True if debug mode is on, False otherwise

Source code in server/vendor/oauthlib/__init__.py
29
30
31
32
33
34
def get_debug():
	"""Get debug mode value. 

	:return: `True` if debug mode is on, `False` otherwise
	"""
	return _DEBUG	

set_debug(debug_val)

Set value of debug flag

:param debug_val: Value to set. Must be a bool value.

Source code in server/vendor/oauthlib/__init__.py
21
22
23
24
25
26
27
def set_debug(debug_val):
	"""Set value of debug flag

    :param debug_val: Value to set. Must be a bool value.
	"""
	global _DEBUG
	_DEBUG = debug_val