from logging import getLogger

try:
    from logging import NullHandler
# For Python 2.7 compatibility.
except ImportError:
    from logging import Handler

    class NullHandler(Handler):
        def emit(self, record):
            pass

log = getLogger('uModbus')
log.addHandler(NullHandler())

from .server import get_server  # NOQA

from logging import getLogger, NullHandler

log = getLogger('uModbus')
log.addHandler(NullHandler())

from .server import get_server  # NOQA

Remove another piece of unreachable code.
Remove another piece of unreachable code.

- from logging import getLogger
+ from logging import getLogger, NullHandler
- 
- try:
-     from logging import NullHandler
- # For Python 2.7 compatibility.
- except ImportError:
-     from logging import Handler
- 
-     class NullHandler(Handler):
-         def emit(self, record):
-             pass
  
  log = getLogger('uModbus')
  log.addHandler(NullHandler())
  
  from .server import get_server  # NOQA
  
Remove another piece of unreachable code.
## Code Before:
from logging import getLogger

try:
    from logging import NullHandler
# For Python 2.7 compatibility.
except ImportError:
    from logging import Handler

    class NullHandler(Handler):
        def emit(self, record):
            pass

log = getLogger('uModbus')
log.addHandler(NullHandler())

from .server import get_server  # NOQA

## Instruction:
Remove another piece of unreachable code.
## Code After:
from logging import getLogger, NullHandler

log = getLogger('uModbus')
log.addHandler(NullHandler())

from .server import get_server  # NOQA
