
__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())

import logging
from logging import NullHandler

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

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

Remove Python 2.6 compatibility code.
Remove Python 2.6 compatibility code.
+ 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())
  
Remove Python 2.6 compatibility code.
## Code Before:

__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())

## Instruction:
Remove Python 2.6 compatibility code.
## Code After:
import logging
from logging import NullHandler

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

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