diff options
Diffstat (limited to 'oauthlib/__init__.py')
-rw-r--r-- | oauthlib/__init__.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/oauthlib/__init__.py b/oauthlib/__init__.py index 3393efe..b7586d2 100644 --- a/oauthlib/__init__.py +++ b/oauthlib/__init__.py @@ -8,18 +8,10 @@ :copyright: (c) 2011 by Idan Gazit. :license: BSD, see LICENSE for details. """ +import logging +from logging import NullHandler __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()) |