diff options
author | Abhishek Patel <abhidgreat8394@gmail.com> | 2019-04-21 12:13:06 -0700 |
---|---|---|
committer | Abhishek Patel <abhidgreat8394@gmail.com> | 2019-04-21 12:13:06 -0700 |
commit | 53b2db53a9b91183e8828f138ca3d64dd601584c (patch) | |
tree | 4ad01f6cd8533a4961dbea1edf5085d2b03c6489 | |
parent | 5ae97b984f9fe29717c125c205f79c87c6370613 (diff) | |
download | oauthlib-53b2db53a9b91183e8828f138ca3d64dd601584c.tar.gz |
add doc
-rw-r--r-- | oauthlib/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/oauthlib/__init__.py b/oauthlib/__init__.py index 8639e88..25132f0 100644 --- a/oauthlib/__init__.py +++ b/oauthlib/__init__.py @@ -19,8 +19,16 @@ logging.getLogger('oauthlib').addHandler(NullHandler()) _DEBUG = False 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 def get_debug_flag(): + """Get debug mode value. + + :return: `True` if debug mode is on, `False` otherwise + """ return _DEBUG |