File: __init__.py

package info (click to toggle)
python-oauthlib 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,016 kB
  • sloc: python: 7,970; makefile: 7; sh: 6
file content (25 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
    oauthlib
    ~~~~~~~~

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

    :copyright: (c) 2011 by Idan Gazit.
    :license: BSD, see LICENSE for details.
"""

__author__ = 'The OAuthlib Community'
__version__ = '2.1.0'


import logging
try:  # Python 2.7+
    from logging import NullHandler
except ImportError:
    class NullHandler(logging.Handler):

        def emit(self, record):
            pass

logging.getLogger('oauthlib').addHandler(NullHandler())