Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/distlib/__init__.py: 100%
8 statements
« prev ^ index » next coverage.py v7.3.1, created at 2023-09-25 06:51 +0000
« prev ^ index » next coverage.py v7.3.1, created at 2023-09-25 06:51 +0000
1# -*- coding: utf-8 -*-
2#
3# Copyright (C) 2012-2022 Vinay Sajip.
4# Licensed to the Python Software Foundation under a contributor agreement.
5# See LICENSE.txt and CONTRIBUTORS.txt.
6#
7import logging
9__version__ = '0.3.8.dev0'
11class DistlibException(Exception):
12 pass
14try:
15 from logging import NullHandler
16except ImportError: # pragma: no cover
17 class NullHandler(logging.Handler):
18 def handle(self, record): pass
19 def emit(self, record): pass
20 def createLock(self): self.lock = None
22logger = logging.getLogger(__name__)
23logger.addHandler(NullHandler())