Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py35 linesDownload Raw Back to oauthlib
1"""2    oauthlib3    ~~~~~~~~4 5    A generic, spec-compliant, thorough implementation of the OAuth6    request-signing logic.7 8    :copyright: (c) The OAuthlib Community9    :license: BSD-3-Clause, see LICENSE for details.10"""11import logging12from logging import NullHandler13 14__author__ = 'The OAuthlib Community'15__version__ = '3.3.1'16 17logging.getLogger('oauthlib').addHandler(NullHandler())18 19_DEBUG = False20 21def set_debug(debug_val):22    """Set value of debug flag23 24    :param debug_val: Value to set. Must be a bool value.25    """26    global _DEBUG  # noqa: PLW060327    _DEBUG = debug_val28 29def get_debug():30    """Get debug mode value.31 32    :return: `True` if debug mode is on, `False` otherwise33    """34    return _DEBUG35 
codekingpro/portable-devtools · Team Ai