summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/__init__.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/slixmpp/__init__.py b/slixmpp/__init__.py
index 0a157211..f53f13f1 100644
--- a/slixmpp/__init__.py
+++ b/slixmpp/__init__.py
@@ -7,14 +7,7 @@
"""
import logging
-if hasattr(logging, 'NullHandler'):
- NullHandler = logging.NullHandler
-else:
- class NullHandler(logging.Handler):
- def handle(self, record):
- pass
-logging.getLogger(__name__).addHandler(NullHandler())
-del NullHandler
+logging.getLogger(__name__).addHandler(logging.NullHandler())
from slixmpp.stanza import Message, Presence, Iq