
import logging
try:  # Python 2.7+
    from logging import NullHandler
except ImportError:
    class NullHandler(logging.Handler):
        def emit(self, record):
            pass

logging.getLogger(__name__).addHandler(NullHandler())


import logging
from logging import NullHandler
logging.getLogger(__name__).addHandler(NullHandler())

Remove the NullHandler patch because we don't support any python versions that need it
Remove the NullHandler patch because we don't support any python versions that need it

  
  import logging
- try:  # Python 2.7+
-     from logging import NullHandler
+ from logging import NullHandler
- except ImportError:
-     class NullHandler(logging.Handler):
-         def emit(self, record):
-             pass
- 
  logging.getLogger(__name__).addHandler(NullHandler())
  
Remove the NullHandler patch because we don't support any python versions that need it
## Code Before:

import logging
try:  # Python 2.7+
    from logging import NullHandler
except ImportError:
    class NullHandler(logging.Handler):
        def emit(self, record):
            pass

logging.getLogger(__name__).addHandler(NullHandler())

## Instruction:
Remove the NullHandler patch because we don't support any python versions that need it
## Code After:

import logging
from logging import NullHandler
logging.getLogger(__name__).addHandler(NullHandler())
