Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pip/_vendor/distlib/__init__.py: 100%
8 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 06:33 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 06:33 +0000
1# -*- coding: utf-8 -*-
2#
3# Copyright (C) 2012-2023 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'
12class DistlibException(Exception):
13 pass
16try:
17 from logging import NullHandler
18except ImportError: # pragma: no cover
20 class NullHandler(logging.Handler):
22 def handle(self, record):
23 pass
25 def emit(self, record):
26 pass
28 def createLock(self):
29 self.lock = None
32logger = logging.getLogger(__name__)
33logger.addHandler(NullHandler())