summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer Katz <omer.drow@gmail.com>2018-05-20 07:42:31 +0300
committerPieter Ennes <pieter@ennes.nl>2018-05-26 20:54:29 +0100
commita102731c88f496b557dedd4024fb9b82801d134a (patch)
treea03097a8cdced4127ddbd78e56fdb6377f100e37
parent3a1aa3519c07af4678d6745de8eb8ff82be98b86 (diff)
downloadoauthlib-a102731c88f496b557dedd4024fb9b82801d134a.tar.gz
Remove Python 2.6 compatibility code.
-rw-r--r--oauthlib/__init__.py12
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())