Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 581B

1234567891011121314151617181920212223
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright (C) 2012-2017 Vinay Sajip.
  4. # Licensed to the Python Software Foundation under a contributor agreement.
  5. # See LICENSE.txt and CONTRIBUTORS.txt.
  6. #
  7. import logging
  8. __version__ = '0.2.7'
  9. class DistlibException(Exception):
  10. pass
  11. try:
  12. from logging import NullHandler
  13. except ImportError: # pragma: no cover
  14. class NullHandler(logging.Handler):
  15. def handle(self, record): pass
  16. def emit(self, record): pass
  17. def createLock(self): self.lock = None
  18. logger = logging.getLogger(__name__)
  19. logger.addHandler(NullHandler())