Skip to content

Commit

Permalink
Remove another piece of unreachable code.
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeTux committed Nov 14, 2015
1 parent df0400c commit 39b6868
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions umodbus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
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
from logging import getLogger, NullHandler

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

0 comments on commit 39b6868

Please sign in to comment.